Previous - File I/O Stream Section Home - File I/O Stream Next - ioSize


ioOpen ( )

Opens and/or creates a file for reading/writing

Usage:

ioOpen (object me, string filePath, integer rwType)

Parameters:

filePath (string) - The path to a file for reading/writing

rwType (integer) - The possible types are:

1 - read only
2 - write only
3 - read and write ( file must exist )
4 - read and write ( if file exist, its contents are destroyed )

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
xtRose.ioOpen( "C:\mySavedData.dat", 4 )

Notes:


Previous - File I/O Stream Section Home - File I/O Stream Next - ioSize