Click on the HELP menu and then select IWBasic User's Guide.
In the User's Guide select GENERAL PROGRAMMING > FILE OPERATIONS > WRITING TO THE FILE in the TOC
Regarding the 6th code example:
DEF myfile as FILE
DEF fNum as FLOAT
fNum = 3453423.3423
IF OPENFILE(myfile, "C:\\temp\\temp.txt", "W") = 0
WRITE myfile, iNum
CLOSEFILE myfile
ENDIF
The example makes the DEF fNum as FLOAT statement and then sets fNum = 3453423.3423.
But then on the 5th line the example shows an integer variable not defined in the example > "i.e. iNum" to be written out to the file. iNum needs to be changed to fNum.
Logman
thanks for reporting the error -- correction made and will appear in next update.
Thanks Larry.
I know some of these reported errors are nit-picky, but to new users they may seem confusing.
Logman