| Function |
Return type |
Description |
| __construct($path:string) |
|
Create instance of text reader class. Specify path to text file. The file will be opened in Append Mode, meaning file will be created if it does not exist, and data will be appended to existing data.
|
| __construct($path:string, $writeMode:SMTextFileWriteMode) |
|
See description for __construct($path:string). Additionally the Write Mode may be specified. Also see SMTextFileWriteMode enum for more information about write mode.
|
Write($content:string)
|
Boolean
|
Write data to text file. Returns True on success, otherwise False. Remember to call Close() when done writing. |
| GetBytesWritten() |
Integer |
Get number of bytes written after calling Write(..) function. |
| Close() |
Boolean
|
Close file. Returns True on success, otherwise False.
|