|
TorqueScript Reference
|
Inherits SimObject.
| void close | ( | ) |
Use the close method to close the current file handle. If the file was opened for writing, this flushes the contents of the last write to disk.
| Boolean isEOF | ( | ) |
Use the isEOF method to check to see if the end of the current file (opened for read) has been reached.
| Boolean openForAppend | ( | filename | ) |
Use the openForAppend method to open a previously created file for appending. If the file specified by filename does not exist, the file is created first.
| filename | The path and filename of the file to open for appending. |
| Boolean openForRead | ( | filename | ) |
Use the openForRead method to open a previously created file for reading.
| filename | The path and filename of the file to open for reading. |
| Boolean openForWrite | ( | filename | ) |
Use the openForWrite method to previously created or a new file for writing. In either case, the file will be overwritten.
| filename | The path and filename of the file to open for writing. |
| String peekLine | ( | ) |
Read a line from the file without moving the stream position.
| String readLine | ( | ) |
Use the readLine method to read a single line from a file previously opened for reading. Use isEOF to check for end of file while reading.
| void writeLine | ( | text | ) |
Use the writeLine method to write a value ( text ) into a file that was previously opened for appending or over-writing.
| text | The value to write to the file. |
| void writeObject | ( | SimObject | , |
| object | prepend | ||
| ) |
1.8.10