File locking works only for writing files.
If you want to implement it for reading, you have to open the file as
read/writeable. Then all other processes, which opens the file in read/write mode too,
will wait until the first process unlocks the file.
For just reading the file, locking is not nessessary and wouldn't even work.
----------------------------------- --the good, the bad and the physi-- -----------------------------------
In reply to Re: File locking
by physi
in thread File locking
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |