WriteFileBytes Procedure
Creates or overwrites a text file with a list of bytes.
Each byte in the file is a number from 0-255 in the list.
Use
ReadFileBytes to read the contents of a text file back into a list of bytes.
Declaration
sub WriteFileBytes(
filePath as String, bytes as List of Number
)
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
WriteFileBytes "myfile.dat", [65, 66, 67]
print ReadFileText("myfile.dat")
Output