|
-
Jul 25th, 2002, 02:49 PM
#1
Thread Starter
Frenzied Member
Text File
How can I find out the # of lines in a text file?
-
Jul 25th, 2002, 02:57 PM
#2
Hyperactive Member
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.
-
Jul 25th, 2002, 03:02 PM
#3
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|