Inheritance diagram for DzFile:

Enumerations | |
| enum | AccessMode { ReadOnly, WriteOnly, ReadWrite, Append, Truncate, Translate } |
Methods | |
| void | close () |
| Boolean | copy (String newName) |
| Boolean | eof () |
| Boolean | open (Number accessMode) |
| String | read () |
| Number | readByte () |
| String | readLine () |
| Array | readLines () |
| void | write (String data, Number length=-1) |
| void | writeByte (Number byte) |
| void | writeLine (String data) |
Constructors | |
| DzFile (String file) | |
This class provides DAZ Script functionality for reading and writing files.
| enum DzFile::AccessMode |
File access mode flags
| DzFile::DzFile | ( | String | file | ) |
Create a file with the given file name
| void DzFile::close | ( | ) |
Close the file
| newName | The path to copy this file to |
| Boolean DzFile::eof | ( | ) |
Open the file with the given mode.
| QString DzFile::read | ( | ) |
Read the entire file.
| int DzFile::readByte | ( | ) |
Read one character from the file.
| QString DzFile::readLine | ( | ) |
Read a line of text from the file.
| QStringList DzFile::readLines | ( | ) |
Read the entire file and split it into lines of text.
Write a string to the file.
| data | The string to write to the file. | |
| length | The maximum number of characters to write to the file. If this is less than 1, the whole string is written. |
| void DzFile::writeByte | ( | Number | byte | ) |
Write a single byte (character) to the file.
| byte | The character to write to the file. |
| void DzFile::writeLine | ( | String | data | ) |
Write a line to the file.
| data | The string to write to the file - a new line character will be written immediately following the string contents. |