Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIFileStream Class Reference
Inheritance diagram for MOAIFileStream:
MOAIStream MOAIStream

List of all members.

Function List

  close
  open

Function Documentation

Close and release the associated file handle.


function close ( MOAIFileStream self )
Parameters:
self ( MOAIFileStream )
Returns:
nil

Open or create a file stream given a valid path.


function open ( MOAIFileStream self, string fileName [, number mode ] )
Parameters:
self ( MOAIFileStream )
fileName ( string )
mode ( number ) Optional. One of MOAIFileStream.APPEND, MOAIFileStream.READ, MOAIFileStream.READ_WRITE, MOAIFileStream.READ_WRITE_AFFIRM, MOAIFileStream.READ_WRITE_NEW, MOAIFileStream.WRITE. Default value is MOAIFileStream.READ.
Returns:
success ( boolean )