Correction: it's probably best to use the Flock class by John Nielsen. Much cleaner and working great. Info can be found here: http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/pywin32/Windows_NT_Files_.2d.2d_Locking.html
Best regards, g "Guy Lateur" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > > I guess it'd be better if I use the second suggestion, i.e. temporarily > renaming the file for writing, and renaming it back to unlock it. > > Cheers, > g > > > -- http://mail.python.org/mailman/listinfo/python-list