CREATES A TEXT FILE TO WRITE, WITH NUMBER N AND THE NAME S
ACTION
The command FILE_OPEN_WRITE N,S creates a new text file named S and gives it the file number N. The number N will be used to designate the file.
The created file can then be used through the appropriated commands.
Remark: if an existing file has the same name S, it is cancelled (then lost) and replaced by the new one.
SYNTAX:
FILE_OPEN_WRITE N,S
USE ERROR EXAMPLE
rem create a file and open it for writing
file_open_write 1,"my_file.txt"
rem write a line
file_writeln 1,"Hello !"
rem close it
file_close 1
FILE_OPEN_WRITE
FILE_OPEN_WRITE N,S
SEE ALSO
FILE_CLOSE
FILE_EOF()
FILE_OPEN_APPEND
FILE_OPEN_READ
FILE_READ
FILE_READBUF
FILE_READLN
FILE_READLN$()
FILE_WRITE
FILE_WRITEBUF
FILE_WRITELN