WriteFile

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
(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...')
m
Line 1: Line 1:
-
The WriteFile class will create a binary file for writing.
+
{{File}} The WriteFile class will create a binary file for writing.
=== Example ===
=== Example ===

Revision as of 18:21, 7 February 2010

DaisyMoon File Objects
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