Hi, I haven't tried this but you could open it for update. i.e. "w" or "w+" Hence the file should be locked (Again I haven't tried this.).
Regards, Roger Lacroix Capitalware Inc. http://www.capitalware.biz Quoting Rick Tsujimoto <[EMAIL PROTECTED]>: > Is there a way to obtain a file lock using fopen (vs. open)? I know that > you can use lockf and fcntl, but I would like to use fopen. > Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive