Script
|
Interface to operating system File operations, ie open, close, read, write... More...
#include <qsUtil.h>
Public Slots | |
void | open (int accessMode) |
Open the file with specific access mode. More... | |
void | close () |
Close the file. More... | |
void | remove () |
Remove the file. More... | |
int | readByte () |
Read the next char of the file. More... | |
String | read () |
Read all the file. More... | |
String | readLine () |
Read one line of the file. More... | |
StringList | readLines () |
Read each line of the file. More... | |
void | writeByte (int byte) |
Write a char in the file. More... | |
void | write (String &data, int length=-1) |
Write a string in the file. More... | |
void | writeLine (String &data) |
Write a string in the file and go next line. More... | |
Public Member Functions | |
File (String &file) | |
~File () | |
String | fileName () |
String | path () |
String | absFileName () |
String | baseName () |
String | extension () |
String | symLink () |
bool | exists () |
bool | isReadable () |
bool | isWritable () |
bool | isExecutable () |
bool | isHidden () |
bool | eof () |
QDateTime | created () |
QDateTime | lastModified () |
QDateTime | lastRead () |
int | size () |
Properties | |
String | name |
file name More... | |
String | path |
file path More... | |
String | fullName |
file name More... | |
String | baseName |
String | extension |
file extension More... | |
String | symLink |
bool | exists |
file exist More... | |
bool | readable |
file readable flag More... | |
bool | writable |
file writable flag More... | |
bool | executable |
file executable flag More... | |
bool | hidden |
file hidden flag More... | |
bool | eof |
file reach end More... | |
QDateTime | created |
Date when the file was created. More... | |
QDateTime | lastModified |
Date when the file was modified. More... | |
QDateTime | lastRead |
date when the file was readed More... | |
int | size |
Size of he file. More... | |
Private Attributes | |
QFile * | file |
Interface to operating system File operations, ie open, close, read, write...
You can use it in Script Editor only.
File::File | ( | String & | file | ) |
File::~File | ( | ) |
String File::absFileName | ( | ) |
String File::baseName | ( | ) |
|
inlineslot |
Close the file.
QDateTime File::created | ( | ) |
bool File::eof | ( | ) |
bool File::exists | ( | ) |
String File::extension | ( | ) |
String File::fileName | ( | ) |
bool File::isExecutable | ( | ) |
bool File::isHidden | ( | ) |
bool File::isReadable | ( | ) |
bool File::isWritable | ( | ) |
QDateTime File::lastModified | ( | ) |
QDateTime File::lastRead | ( | ) |
|
slot |
Open the file with specific access mode.
String File::path | ( | ) |
|
slot |
Read all the file.
|
slot |
Read the next char of the file.
|
slot |
Read one line of the file.
|
slot |
Read each line of the file.
|
slot |
Remove the file.
int File::size | ( | ) |
String File::symLink | ( | ) |
|
slot |
Write a string in the file.
|
slot |
Write a char in the file.
|
inlineslot |
Write a string in the file and go next line.
|
private |
|
readprivate |
|
readprivate |
Date when the file was created.
|
readprivate |
file reach end
|
readprivate |
file executable flag
|
readprivate |
file exist
|
readprivate |
file extension
|
readprivate |
file name
|
readprivate |
file hidden flag
|
readprivate |
Date when the file was modified.
|
readprivate |
date when the file was readed
|
readprivate |
file name
|
readprivate |
file path
|
readprivate |
file readable flag
|
readprivate |
Size of he file.
|
readprivate |
|
readprivate |
file writable flag