Well....It depends in how you are using those functions....
Flock() --> bool flock (int fp, int operation)
operation --> 1 READ BLOCK
--> 2 WRITE BLOCK
--> 3 FREE BLOCK
fp it's the name of the text file.
In order to use fclose() you need to use fopen() first.......
int fopen (string filename, string mode [, int use_include_path])
Blag :evilgrin: