To out put to a file use the open to write command.
OPEN TO WRITE File Number, Filename
You can write a file many ways (in a code box to save space).
WRITE WORD : WRITE WORD File Number, Variable
WRITE BYTE : WRITE BYTE File Number, Variable
WRITE LONG : WRITE LONG File Number, Variable
WRITE DIRBLOCK : WRITE DIRBLOCK File Number, Folder to Create
WRITE FILEBLOCK : WRITE FILEBLOCK File Number, Filename to Create
WRITE FLOAT : WRITE FLOAT File Number, Variable
WRITE FILE : WRITE FILE File Number, Variable
WRITE MEMBLOCK : WRITE MEMBLOCK File Number, Memblock Number
WRITE STRING : WRITE STRING File Number, String
A good way to output numbers that are accesable to the user is with the WRITE BYTE and the SKIP BYTES command.
Rem First Open a File
Open to write 1,"Test.txt"
Rem write numbers 1 to 10 to a file
While x<=10
Rem Write Byte
Write Byte 1,x
Rem Skip
Skip Bytes 1,1
Close file 1
Endwhile
Its in the help files go check.
"All programmers are playwrights and all computers are lousy actors."
-Anon.