[Overview][Procedures and functions] | Reference for unit 'fileshare' (#powtils_main) |
Source position: fileshare.pas line 22
function FileMarkRead( |
const fname: String; |
var key: Word |
):Boolean; |
The key parameter returns a key to be used for unlocking the file when done reading. Store the key parameter in a variable and send it to the FileUnmarkRead function when finished reading.
var k: word; begin FileMarkRead('test.txt', k); // do your reading here, other people wait until it is unlocked //... FileUnmarkRead('test.txt', k); // now it is unlocked end.