Re: Need to lock read a text file, then delete...
- From: "Larry Lard" <larrylard@xxxxxxxxxxx>
- Date: 9 May 2006 08:22:15 -0700
Alessandro wrote:
Hi everybody,
I tried to find some information about my subject with google, but I
didn't find anything.
I need to read a text file, process the entire content, then kill. In
the meantime I have to be sure that no one could write on it. So I
opened with read write lock, but when i closed it, before deleting,
someone wrote something, and I lost the information because immediately
after I killed it.
Have you any suggestion?
Rename the file before you start reading it. That way, any writer will
(presumably) find the file missing, and create a new blank one to write
to.
I guess we are talking about parsing a log file or something like that?
Sorry for my bad english.
Better than my Italian.
--
Larry Lard
Replies to group please
.
- Follow-Ups:
- Re: Need to lock read a text file, then delete...
- From: Alessandro
- Re: Need to lock read a text file, then delete...
- References:
- Need to lock read a text file, then delete...
- From: Alessandro
- Need to lock read a text file, then delete...
- Prev by Date: Re: How to disable the numericupdown event firing?
- Next by Date: Re: array operators
- Previous by thread: Need to lock read a text file, then delete...
- Next by thread: Re: Need to lock read a text file, then delete...
- Index(es):
Relevant Pages
|