Total No. of "Records" in a File?

W. eWatson notvalid2 at sbcglobal.net
Sat Aug 23 13:23:56 EDT 2008


I have an ordinary text file with a CR at the end of a line, and two numbers 
in each line. Is there some way to determine the number of lines (records) 
in the file before I begin reading it?

-- 
            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
               Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

                     Web Page: <www.speckledwithstars.net/>



More information about the Python-list mailing list