I'd be more worried about two users writing to the file at the same
time.  I don't have much experience in that area though so maybe
someone could chime in on if that's a legitimate worry or not.<br>
<br>
-Greg<br>
<br><br><div><span class="gmail_quote">On 11/24/05, <b class="gmail_sendername">Tim Golden</b> <<a href="mailto:tim.golden@viacom-outdoor.co.uk">tim.golden@viacom-outdoor.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
[Guy Lateur]<br>> I'm working on an application that will be used by several users at<br>the same<br>> time. The user should be able to both read and write to some data file<br><br>> stored on our file server. My question is: how can I prevent that one
<br>user<br>> writes to the file while another user is reading it?<br><br>Might be worth looking in the Python Cookbook area. I seem<br>to remember several recipes to do this kind of thing<br>cross-platform. eg,<br><br>
<a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203</a><br><br>Also the pywin32 docs come with a flock-style example. Hope<br>one of the two can help you.
<br><br>TJG<br><br>________________________________________________________________________<br>This e-mail has been scanned for all viruses by Star. The<br>service is powered by MessageLabs. For more information on a proactive
<br>anti-virus service working around the clock, around the globe, visit:<br><a href="http://www.star.net.uk">http://www.star.net.uk</a><br>________________________________________________________________________<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>Gregory Piņero<br>Chief Innovation Officer<br>Blended Technologies
<br>(<a href="http://www.blendedtechnologies.com">www.blendedtechnologies.com</a>)