Hi Darrin.
VB's Random File Access should meet your requirements. See the VB Help.
There is a risk that the file will become very large and very difficult to
handle.
You could possibly prevent this by ensuring the file contains just the data for
a certain period of time, e.g. a day, week or month if this is a risk.
Another possibility is to store the data in a database and, when reporting
is necessary, to sort the data so that the last message is presented first.
Take care.
Mike
________________________________
From: Darrin J. Calcutt <dcalcutt@...>
To: visualbasic6programming@yahoogroups.com
Sent: Tuesday, January 6, 2009 8:18:14 PM
Subject: [Visual Basic 6 programming] Adding to a TXT file
Does anyone have any suggestions?
I'm addding a string to a TXT file.
Its easy to append the string to the end of the TXT file. I opened the file
up for append.
I'd like to add the string to the begining of the file.
Each string I add is a statement from the server on its status. Its
time-date stamped. I'd like to have the latest updates on the top of the TXT
file, and not the bottom.
Any suggestions?
Darrin J. Calcutt, CEO, COO
Canadian Locomotive Logistics, http://atc.lovethos etrains.com
D&R Promotions, http://my.hdvideo. ca
[Non-text portions of this message have been removed]