Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count number of lines in .txt

Status
Not open for further replies.

finitesimian

Programmer
Feb 11, 2006
29
0
0
US
I'm trying to write a script that opens a .txt file For Input, scans it for occupied lines, then returns the line numbers for each newline..........or maybe even counts the number of existing newlines.

Got any suggestions on an elegant way to pull this off?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top