Results 1 to 24 of 24

Thread: Read Number of Lines in txt file [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575

    Read Number of Lines in txt file [RESOLVED]

    Is there a simple way to find out how many lines there are in a txt file?

    I need the number of lines in the text file i have open in order to calculate how long it will take to process it for my progress bar, but I'm not sure how to count the lines...

    What my program does is run through line by line decrypting it. now, this takes a while on large files. So a progress bar would be very handy. I'll just set the max thing of the progress bar to the amount of lines, then add to the count by 1 each time a line gets processed.

    This alright? All I need now is to know how many lines there are.

    Thanks a bunch!
    Last edited by LITHIA; Jul 29th, 2004 at 08:52 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width