What it does
FileWriteInteger takes iFileID (an integer) and i (an integer), and returns nothing. iFileID is the id of a File object, obtained elsewhere in the File family.
Syntax
FileWriteInteger(iFileID integer, i integer)Parameters
| Name | Type |
|---|---|
| iFileID | integer |
| i | integer |
Every form returns
nothing
Example · generated
file = CreateMemblockFromFile("assets/data.dat")FileWriteInteger(file, 1)DO Sync()LOOPCreateMemblockFromFile is there to give the call something to act on; FileWriteInteger is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.