Reads a file.
fileread <file handle> <read byte> <strvar>
Reads specified byte data from the file specified by <file handle>.
The data are written into the string variable <strvar>. The file pointer is moved to reading bytes.
If the file pointer reaches the end of the file while reading the data, the system variable "result" is set to 1. Otherwise, "result" is set to zero.
The range of <read byte> argument must be from 1 to 255.
filename = 'foo.txt' fileopen fp filename 0 :loop fileread fp 10 data messagebox data filename if result goto fclose goto loop :fclose fileclose fp