Results 1 to 3 of 3

Thread: Text File

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Text File

    How can I find out the # of lines in a text file?

  2. #2
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    299
    try this.

    Dim YourFile as String, LineCount as Long

    Open YourFile for Input as #1

    Do while not eof
    Input Line #1,c
    LineCount=LineCount+1
    loop

    Close #1


    Good luck.

  3. #3

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    I knew of this method. I was hoping that there was a function that will do this. (built in).

    Thanks,

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