|
finding precision of data in file
Hi,
Suppose I had a data file with numbers of various precisions in an NxM array
23.0001 33.034 2.00
99 3.92 0
however I did not know this ahead of time.All I know is I have a file with an NxM array with numbers of some precision.
If I wanted to find out
-How many columns and rows there were
-And the finest precision of the whole set. (x10^-4 from the first number)
What would be the best way of doing this?
-Since a 'space' is the delimeter here could I count the number of spaces before the last number and add 1 to that to get the number of columns?
-I suppose to get the number of rows I could
to a get line and increment a variable everytime until I hit the EOF.
thanx,
|