Re: Open append text files for update simultaneously
- From: "Someone" <nobody@xxxxxxx>
- Date: Wed, 12 Oct 2005 11:02:40 -0400
You have bigger problems with deleting things inside a file. In VB6, the
file I/O do not provide a mechanism to make the file shorter. So if you
delete a line in the middle, you can't make the file smaller.
Also, VB6 does not expose the file handle, so you can't use Windows API.
You could use the Windows API instead. The API function that truncates a
file to the current position is SetEndOfFile. You first There are many who
made a wrapper for the File API, so you don't have to make your own.
Perhaps if you explain further why you need this, maybe we could have other
suggestions that you may have overlooked. It seems that what you need is a
database, like MS Access DB, or SQL Server. You don't have to install MS
Access in order to use an Access DB, the DB driver comes with Windows and
can be updated by a setup package, or downloaded from the web.
<chook.harel@xxxxxxxxx> wrote in message
news:1129106817.318599.109680@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Ok, but what if the reading mechanisem should delete what it read from
> the file
> that means I read the first record, deletes it from the file and saves
> it.
> Is that easy to do ? Is it possible ?
> and what if there are many proccess trying to write to the file (even
> if they wait and gets to it after 5 seconds)
> How can I make sure the reading will be in higher priority then the
> writing?
>
.
- Follow-Ups:
- Re: Open append text files for update simultaneously
- From: chook . harel
- Re: Open append text files for update simultaneously
- References:
- Open append text files for update simultaneously
- From: chook . harel
- Re: Open append text files for update simultaneously
- From: Someone
- Re: Open append text files for update simultaneously
- From: Someone
- Re: Open append text files for update simultaneously
- From: chook . harel
- Re: Open append text files for update simultaneously
- From: Someone
- Re: Open append text files for update simultaneously
- From: chook . harel
- Open append text files for update simultaneously
- Prev by Date: Re: Open append text files for update simultaneously
- Next by Date: Re: Open append text files for update simultaneously
- Previous by thread: Re: Open append text files for update simultaneously
- Next by thread: Re: Open append text files for update simultaneously
- Index(es):
Relevant Pages
|