WriteFile

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
Jeb (Talk | contribs)
(Created page with 'The WriteFile class will create a binary file for writing. === Example === <pre> local path = daisy.getUserFolderPath("") local file = WriteFile(path .. filename) fil...')
Newer edit →

Revision as of 18:20, 7 February 2010

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