Determining line count in an ASCII file

I want to dump the contents of an ASCII file into vectors. A page length is 66 lines, but the number of pages in the file is unknown.

Ideally, I'd like to be able to determine the number of lines in the file and then break it down into 66-line increments. Each increment would be in its own vector.

Any help would be appreciated.

[356 byte] By [Khitry] at [2007-9-26 3:31:08]
# 1
You can first do a loop reading the file and counting the line numbers. After, you instantiate the vector with this counter.
jodevan at 2007-6-29 11:57:26 > top of Java-index,Archived Forums,Java Programming...
# 2
yeah, reading the file to count line numbers is very fast. It takes less than a second to count the number of lines in a 74MB text file.
thunderBolt at 2007-6-29 11:57:26 > top of Java-index,Archived Forums,Java Programming...