CFile Class
The CFile class encapsulates file operations. This class wraps several C functions for working with text and binary files.
Construction |
Object = CFile:new() |
Destruction |
Object:delete() |
The data members in the table below may be safely read by the script. These data members are initialized by the Open method and they should not be directly written by your script.
sPath |
The path name for the file. |
sAccess |
The file access mode string |
Creates a new instance of a CFile object. |
|
Deletes the instance of the CFile object. |
Closes the file. |
|
Returns the current file position. |
|
Commits data in the operating system buffer to the file. |
|
Opens the file. |
|
Writes formatted text to the file. |
|
Resets the file position to a given location. |
Returns the name of the file. |