WriteFile
From OxeyeWiki
The WriteFile class will create a binary file for writing.
Example
local path = daisy.getUserFolderPath("") local file = WriteFile(path .. filename) file:writeInt(fileVersion) file:writeString(playerName) -- ... and so on ... file:close()