WriteFile

From OxeyeWiki

Revision as of 18:20, 7 February 2010 by Jeb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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()

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox