text utility makes it easier to read and write to any file within in your checks.
This utility expects an absolute path to a JSON file and returns an object with methods that help you read and write to any file.
exists
Example
get
Returns
Returns the contents of a file as an array of strings representing each line. If the file does not exist,undefined will be returned.
Example
contains
Parameters
string[]
required
An array of strings, representing lines of text.
Returns
Returns a boolean value indicating whether specified lines exist in the file. If the file does not exist,false will be returned.
Example
set
Parameters
string[]
required
An array of strings, representing lines of text.
Example
remove
Parameters
string[]
required
An array of strings, representing lines of text.