READS THE TEXT FILE NUMBER N TO THE NEXT SEPARATOR AND STORES THE CONTENT INTO VARIABLE V
ACTION
The command FILE_READ N,V reads the text file number N from the current position to the next separator and stores the content into the variable V.
The variable V must be on the same type than for the writing command (FILE_WRITE), but as the file is a text file, all string variable is suitable.
SYNTAX:
FILE_READ N,V
USE ERROR EXAMPLE
rem open a file for reading
file_open_read 1,"my_file.txt"
rem print the first value
file_read 1,a$:print a$
rem close it
file_close 1
FILE_READ
FILE_READ N,V
SEE ALSO
FILE_CLOSE
FILE_EOF()
FILE_OPEN_APPEND
FILE_OPEN_READ
FILE_OPEN_WRITE
FILE_READBUF
FILE_READLN
FILE_READLN$()
FILE_WRITE
FILE_WRITEBUF
FILE_WRITELN