- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function file_mark_read(const fname: string; var key: word): boolean;
Arguments:
-
fname |
Target file name |
key |
Variable to contain unique flag identifier. It will be used for unlocking. |
Description:
-
Sets unique file reading flag. Call it before opening file for reading.
Returns:
-
TRUE on success, FALSE on error.
Usage:
-
file_mark_read('filename.ext', wk);
assign(fh, 'filename.ext');
reset(fh);
// Some actions
close(fh);
file_unmark_read('filename.ext', wk);
See also:
-
file_unmark_read, file_mark_write.
|