File Manipulation Routines
Routines summary
- createDirectory — Returns "true" if the directory was created successfully and "false" otherwise.
- createFile — Creates an empty file.
- deleteFile — Deletes a file. It also returns "true" if the file was deleted successfully and "false" otherwise.
- directoryExists — Returns "true" if the directory exists and "false" otherwise.
- fileClose — Closes a previously opened file and removes it from memory.
- fileContains — Returns "true" if the file contains any string that matches the specified regex.
- fileCopy — Copy a file from one location to another.
- fileExists — Returns 'true' if the file exists and 'false' otherwise.
- fileInfo — Returns basic file information about a file such as the date it was created.
- fileMove — Moves a file from one location to another.
- fileOpen — Opens a file in memory so that it may be read from.
- fileRead — Reads a byte array from a file until it reaches the specified length.
- fileReadByte — Reads a byte from an open file.
- fileReadLine — Reads a line of text from an open file until it reaches the end of the line (\n or \r\n).
- fileSeek — Moves the file pointer to a specific spot in an already open file.
- fileSHA256Checksum — Returns the SHA256 checksum of the file.
- fileSize — Returns the size for a given file.
- fileWrite — Writes text or byte data to an open file.
- findDirectories — Searches for directories that match the given regex in the specified folder.
- findFiles — Searches for files that match the given regex in the specified folder.
- printInFile — Prints in the specified file the provided value.
- readFromBinaryFile — Read the text of a binary file.
- readFromCSVFile — Reads the values from the CSV file, returning them to an array, of N rows * M columns values.
- readFromTextFile — Read the text of the file.
- renameFile — Renames a file.
- writeToBinaryFile — Prints bytes to a specified file. The file can be overwritten or appended to.
- zipFiles — Adds a file or an array of files to a zip file.