What it does
CreateFileFromMemblock brings a Memblock object into being: it is how the rest of the program comes to have one. It takes filename (a string) and memID (an integer), and returns nothing.
Syntax
CreateFileFromMemblock(filename string, memID integer)Parameters
| Name | Type |
|---|---|
| filename | string |
| memID | integer |
Every form returns
nothing
Example · generated
memblock = CreateMemblockFromFile("assets/data.dat")CreateFileFromMemblock("assets/data.dat", memblock)DO Sync()LOOPCreateMemblockFromFile is there to give the call something to act on; CreateFileFromMemblock 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.