WriteFileLines Procedure
Creates or overwrites a text file with a list of line strings.
Use
ReadFileLines to read the contents of a text file back into a list of strings.
Declaration
sub WriteFileLines(
filePath as String, lines as List of String
)
Parameters
Possible error codes
- ERR_ACCESS_DENIED
- ERR_DISK_FULL
- ERR_FILE_NOT_FOUND
- ERR_IO_FAILURE
- ERR_PATH_IS_DIRECTORY
- ERR_PATH_TOO_LONG
Example
Code
WriteFileLines "myfile.txt", ["A", "B", "C"]
print ReadFileText("myfile.txt")
Output