Interface to operating system File operations, ie open, close, read, write...
More...
#include <qsUtil.h>
|
void | open (int accessMode) |
| Open the file with specific access mode.
|
|
void | close () |
| Close the file.
|
|
void | remove () |
| Remove the file.
|
|
int | readByte () |
| Read the next char of the file.
|
|
String | read () |
| Read all the file.
|
|
String | readLine () |
| Read one line of the file.
|
|
StringList | readLines () |
| Read each line of the file.
|
|
void | writeByte (int byte) |
| Write a char in the file.
|
|
void | write (String &data, int length=-1) |
| Write a string in the file.
|
|
void | writeLine (String &data) |
| Write a string in the file and go next line.
|
|
Interface to operating system File operations, ie open, close, read, write...
You can use it in Script Editor only.
if ( file.exists )
{
var message = "The output file \"" + file.name + "\" exists. Do you wish to overwrite it?"
return false;
}
return true;
File::File |
( |
String & |
file, |
|
|
QScriptContext * |
context |
|
) |
| |
String File::absFileName |
( |
| ) |
|
String File::baseName |
( |
| ) |
|
QDateTime File::created |
( |
| ) |
|
String File::extension |
( |
| ) |
|
String File::fileName |
( |
| ) |
|
bool File::isExecutable |
( |
| ) |
|
bool File::isReadable |
( |
| ) |
|
bool File::isWritable |
( |
| ) |
|
QDateTime File::lastModified |
( |
| ) |
|
QDateTime File::lastRead |
( |
| ) |
|
void File::open |
( |
int |
accessMode | ) |
|
|
slot |
Open the file with specific access mode.
Read the next char of the file.
String File::readLine |
( |
| ) |
|
|
slot |
Read one line of the file.
StringList File::readLines |
( |
| ) |
|
|
slot |
Read each line of the file.
void File::write |
( |
String & |
data, |
|
|
int |
length = -1 |
|
) |
| |
|
slot |
Write a string in the file.
void File::writeByte |
( |
int |
byte | ) |
|
|
slot |
Write a char in the file.
void File::writeLine |
( |
String & |
data | ) |
|
|
inlineslot |
Write a string in the file and go next line.
QScriptContext* File::context |
|
private |
Date when the file was created.
QDateTime File::lastModified |
|
read |
Date when the file was modified.
date when the file was readed
The documentation for this class was generated from the following file: