[Overview][Procedures and functions] | Reference for unit 'fileshare' (#powtils_main) |
Source position: fileshare.pas line 24
function FileUnmarkRead( |
const fname: String; |
key: Word |
):Boolean; |
This function is for when you are sharing files among several people at once, or when edit conflicts could occur. An example of when file sharing is needed: if you design wiki that is file system based instead of database driven. Common files are being accessed at once by several people in a wiki, and you would not want files to be overwritten or read at the sime time someone else was writing to the file.
var k: word; begin FileMarkRead('filename.ext', k); assign(fh, 'filename.ext'); reset(fh); // Some actions close(fh); FileUnmarkRead('filename.ext', k); end.