Reading a table



Hello,

My C is a bit rusty (.NET programmer normally but need to do this in
C) and I need to read in a text file that is setup as a table. The
general form of the file is

00000000 USNIST00Z 00000000_00 0 000 000 000 0000 000

I need to read the file line by line and eventually parse out each
piece of the file and store in arrays that correspond to the specific
line. array1[1] would be the first entry in the first line and so on
and so forth.

Any suggestions would be great!

Thanks.
.



Relevant Pages

  • Re: Reading a table
    ... My C is a bit rusty (.NET programmer normally but need to do this in ... array1would be the first entry in the first line and so on ... write your own function to parse it, because only you know the format. ...
    (comp.lang.c)
  • Re: SAVE
    ... to detect the first entry to the routine. ... you never need to allocate them again; ... arrays if the arrays are large. ... If the size can change during a run, then that condition needs to be handled as well, but it's certainly simple enough logic to do so. ...
    (comp.lang.fortran)
  • Re: SAVE
    ... to detect the first entry to the routine. ... you never need to allocate them again; ... arrays if the arrays are large. ...
    (comp.lang.fortran)