Find the Length of a Text File

  • Thread starter Thread starter Dan R.
  • Start date Start date
D

Dan R.

I always use this to find the length of a text file but isn't there a
better way?

While (EOF(1) <> True)
Input #1, ' text
count = count + 1
Wend

Thanks,
-- Dan
 
I always use this to find the length of a text file but isn't there a
better way?

While (EOF(1) <> True)
Input #1, ' text
count = count + 1
Wend

Count = FileLen("<<path to your file>>")

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top