Go back to:
File
A File supports the following functions:
Method
- close
- Flushes any outstanding changes to the disk and then closes the file to prevent further access until it is opened once again.
- flush
- Flushes any outstanding changes to the disk but leaves the file open so you can continue to access it.
- setPos
- Set the current position in the file for reading and writing.
- getPos
- Returns the current position in the file.
- size
- Returns the current total size of the file in bytes.
- read
- Reads one or more bytes from the file into memory.
- write
- Writes one or more bytes from memory to the file.