File Class
Name: File
Description:
- * File class provides a wrapper around filesystem file functions
Package: org.active-link.sys
Author: Zurab Davitiani
Version: 0.4.0
All Methods
File
close
getContents
getContentsArray
open
write
File
( optional string filename, optional string fileOpenMode )
Description:
- * Constructor accepts filename (optional) and open mode (optional, default "r")
- * If filename is specified, it is opened with the supplied open mode
Arguments:
- optional string filename
- optional string fileOpenMode
close
( )
Description:
- * Closes open file handle, resets filename, and file open mode to defaults
Returns: true if successful, false otherwise
getContents
( optional int chunkSize )
Description:
- * Returns file contents, optionally specify chunk size number of bytes to use per chunk read (default 8192)
Returns: string file contents if successful, false otherwise
Arguments:
getContentsArray
( )
Description:
- * Returns file contents as an array of lines
Returns: array file contents lines
open
( string filename, optional string fileOpenMode )
Description:
- * Opens a file with the supplied open mode
Returns: true if successful, false otherwise
Arguments:
- string filename
- optional string fileOpenMode
write
( string strContent )
Description:
- * Writes supplied string content to already open file handle
Returns: number of bytes written if successful, false otherwise
Arguments: