troubleshooting Question

Find Last *.txt Line in VB6

Avatar of Bob Schneider
Bob SchneiderFlag for United States of America asked on
Visual Basic Classic
4 Comments1 Solution157 ViewsLast Modified:
What is the fastest way to find the value of the last line in a plain text file with records like I am listing below.  I want to write it to a variable sLastTriRcd (There are usually thousands of records so a quick and efficient way is necessary.)

aaC4000000018ff900011909281324072bf8FS
aaC4000000018ff900011909281324072bf8BS
aaC4000000018ff900011909281324072bf8LS
aaC40000000190ac000119092813241243b7FS
aaC40000000190ac000119092813241243b7BS
aaC40000000190ac000119092813241243b7LS
aaC400000001905800011909281324181f96FS
aaC400000001905800031909281324183a95BS
aaC60000000191f700011909281324184bc8FS
aaC60000000191f700021909281324184bc9BS
aaC400000001905800031909281324183a95LS
aaC60000000191f700021909281324185ac9LS
aaC4000000019ffa000119092813243313f0FS
aaC4000000019ffa000219092813243322f1BS
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 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 4 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