W
W. eWatson
It seems every year, I have to write one simple C-program.
If I stare at my only book on C, Comprehensive C, 1992 (way back), my
eyes start to glaze over. It's been along time.
I'm using gcc.
I have a file something like this:
mydata.dat
0.345 12.613 8.100
13.118
8.224 0.777
22.420 0.546 99.000
7.3f specifier. The numbers are lined up, but sometimes there are only
one or two numbers on a line. Actually, I'd be happy to read just one
line. I think I might be able to carry the ball after that.
I want to read it, and display it on the console.
Can someone supply the details?
If I stare at my only book on C, Comprehensive C, 1992 (way back), my
eyes start to glaze over. It's been along time.
I'm using gcc.
I have a file something like this:
mydata.dat
0.345 12.613 8.100
13.118
8.224 0.777
22.420 0.546 99.000
7.3f specifier. The numbers are lined up, but sometimes there are only
one or two numbers on a line. Actually, I'd be happy to read just one
line. I think I might be able to carry the ball after that.
I want to read it, and display it on the console.
Can someone supply the details?