|
Posted by NC on 03/04/07 23:47
On Mar 3, 5:06 am, "Efi Merdler" <foo...@gmail.com> wrote:
>
> I created a very simple application that reads and writes to a file, I
> was wondering if fopen when opening a file for write access blocks
> this file, i.e. when another user runs this script the script will
> halt until the first user closes its file handle.
Nothing of the sort. You need to expressly lock the file using
flock(),
which, alas, will not help you on Windows due to Windows' thread
model.
Cheers,
NC
[Back to original message]
|