Reading from a file
Posted: Wed Feb 13, 2008 2:17 pm
I have a file of numbers - 2,5,6,99
which might have ten numbers or 100.
I want to read the last, say, 30 - but of
course there mightn't be 30 numbers at
the start. They're comma-separated so
perhaps could count the commas.
Is there another way to count the number of "records"?
If I put them in a database is there a "reccount"
function? Haven't found any database help files.
Could read them all into an array then get the
last 30.
If I copy records into an array can I get the
number of records from the number of elements?
which might have ten numbers or 100.
I want to read the last, say, 30 - but of
course there mightn't be 30 numbers at
the start. They're comma-separated so
perhaps could count the commas.
Is there another way to count the number of "records"?
If I put them in a database is there a "reccount"
function? Haven't found any database help files.
Could read them all into an array then get the
last 30.
If I copy records into an array can I get the
number of records from the number of elements?