File command WRITE
If there is insufficient information on this page and you wish learn more about WRITE, please send an email to email@example.com. You can help to improve information about WRITE by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.
The READ/WRITE command set is used to store variables to a file as binary data.
The common problem with INPUT/PRINT set is there are many conflicts with data.
PRINT #1; "Hello, world"
The above example only wrote one string and you want read it in one variable, but this is impossible for INPUT command to understand, because INPUT finds the separator comma, so it thinks there are two variables not one.
So, now, you can store arrays, strings etc and what you write is what you will read the next time.
The parameters can be variables ONLY.
Its very bad idea to mixed READ/WRITE commands with INPUT/PRINT commands in the same file.