Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
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.
subject: Number of lines in the text file
text file ?? simple program
How to replace data in a file
read specific line from text file
generate a text file with random no of characters
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015