Avatar of Bob Schneider
Bob Schneider
Flag for United States of America

asked on 

Find Last *.txt Line in VB6

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

Open in new window

Visual Basic Classic

Avatar of undefined
Last Comment
Bob Schneider

8/22/2022 - Mon