troubleshooting Question

Reading text files by line number

Avatar of icredes
icredes asked on
Visual Basic Classic
11 Comments1 Solution269 ViewsLast Modified:
I have the potential to be reading some large files that I am parsing by line.

I would like to be able to do either of the following

read a file by a line number without having to loop throught the whole text file
or
read a file line by line inversly (reading the last line to the begining)

-------------------------------------------------------------------------------------

Here is a brief synopsis of what I am doing
I have a text file that has a time stamp parsed into each line the time stamps are ordered in the list from least to greatest.

when I first run the program it finds where the next line is to be processed based on the time stamp so that I only need to worry about the lines after the old ones.

My consern in all of this is processing time.  it would be faster to go from the last to the last line processed.

--------------------------------------------------------------------------------------------------------

Any help is greatly appreciated

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros