WRITES THE DATA S TO THE TEXT FILE NUMBER N
ACTION
The command FILE_WRITE N,S writes the data S to the text file number N, without going to next line, the data being in the variable S of type integer, real or string, or in the string expression S.
Example :
file_write 1,Ab3(6) (variable belonging to a real array)
file_write 1,A$+B$ (string expression)
file_write 1,"Hello !"
SYNTAX:
FILE_WRITE N,S
USE ERROR EXAMPLE
rem open a file for writing
file_open_write 1,"my_file.txt"
rem write a data
file_write 1,"Hello !"
rem close it
file_close 1
FILE_WRITE
FILE_WRITE N,S
SEE ALSO
FILE_CLOSE
FILE_EOF()
FILE_OPEN_APPEND
FILE_OPEN_READ
FILE_OPEN_WRITE
FILE_READ
FILE_READBUF
FILE_READLN
FILE_READLN$()
FILE_WRITEBUF
FILE_WRITELN