Search the web
Sign In
New User? Sign Up
visualbasic6programming · VB help for all versions!
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Adding to a TXT file   Message List  
Reply | Forward Message #31632 of 32052 |
Re: [Visual Basic 6 programming] Adding to a TXT file

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]




Thu Jan 8, 2009 10:19 am

solarquark
Offline Offline
Send Email Send Email

Forward
Message #31632 of 32052 |
Expand Messages Author Sort by Date

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...
Darrin J. Calcutt
dcalcutt2000
Offline Send Email
Jan 6, 2009
8:18 pm

open file one with existing data in it and store it something like this.... this will input the entire file to StrTemp dim lngFile as long dim strTemp as...
Kenneth Danner
racermand289
Offline Send Email
Jan 6, 2009
11:17 pm

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...
Michael Malone
solarquark
Offline Send Email
Jan 12, 2009
2:45 am

... Help. ... difficult to handle. ... the data for ... M software appends a file to tell me the server status, and other issues that were had. I'm just...
Darrin J. Calcutt
dcalcutt2000
Offline Send Email
Jan 25, 2009
5:36 pm

open file one with existing data in it and store it something like this.... this will input the entire file to StrTemp dim lngFile as long dim strTemp as...
Kenneth Danner
racermand289
Offline Send Email
Jan 25, 2009
10:55 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help