Inherits ScriptObject.
Public Member Functions | |
TextFile (String path, Boolean write, String encoding) | |
Boolean | isOpen () |
String | readln () |
write (String text) | |
writeln (String text) | |
close () | |
Text file.
Security: Requires security level 0.
Opens a text file for reading/writing.
path | The path of the file to open. |
write | Specifies if the file should be written or read. |
encoding | The encoding of the text file. |
close | ( | ) |
Closes the file.
Boolean isOpen | ( | ) |
Returns true if the file is open.
String readln | ( | ) |
Reads a line.
write | ( | String | text | ) |
Writes the specified text without end-of-line.
text | The text to be written. |
writeln | ( | String | text | ) |
Writes the specified text and an end-of-line.
text | The text to be written. |