A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Number of lines in the text file
Joined: Nov 17, 2001
Jan 12, 2008 19:03:00
What is the easiest way to find the total number of lines in a text file?
I know we can create a
and count it line by line.
Joined: Feb 20, 2006
Jan 13, 2008 02:14:00
I don't think that the number of lines in a text file is stated explicitly (like for example the file's size). You would have to calculate it manually. Yes that means counting them one by one.
I agree. Here's the link:
subject: Number of lines in the text file
How to replace data in a file
generate a text file with random no of characters
text file ?? simple program
read specific line from text file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014