CreateFileFromMemblock

Family: Memblock · One form

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

NameType
filenamestring
memIDinteger

Every form returns

nothing

Example · generated

memblock = CreateMemblockFromFile("assets/data.dat")CreateFileFromMemblock("assets/data.dat", memblock)DO  Sync()LOOP

CreateMemblockFromFile 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.

43 commands in Memblock