|
Functions | |
| int | qCountRead (const char *filepath) |
| Read counter(integer) from file with advisory file locking. | |
| bool | qCountSave (const char *filepath, int number) |
| Save counter(integer) to file with advisory file locking. | |
| int | qCountUpdate (const char *filepath, int number) |
| Increases(or decrease) the counter value as much as specified number with advisory file locking. | |
Read/Write/Update counter file like below.
---- number.dat ---- 74 --------------------
| int qCountRead | ( | const char * | filepath | ) |
Read counter(integer) from file with advisory file locking.
| filepath | file path |
int count; count = qCountRead("number.dat");
| bool qCountSave | ( | const char * | filepath, | |
| int | number | |||
| ) |
Save counter(integer) to file with advisory file locking.
| filepath | file path | |
| number | counter integer value |
qCountSave("number.dat", 75);
| int qCountUpdate | ( | const char * | filepath, | |
| int | number | |||
| ) |
Increases(or decrease) the counter value as much as specified number with advisory file locking.
| filepath | file path | |
| number | how much increase or decrease |
int count; count = qCountUpdate("number.dat", -3);
| [Home] [About] [Examples] [Changes] [Download] [SVN Repository] [Install] [Reference] |