B
bstebroc
Hi,
needs. I have a sequence of files that contain tab/space separated
data, with anywhere between 10 and 300 columns. Out of this data, I
need only seven columns, but these columns will be selected by the user
at runtime.
My original plan was to read in the first row (with the column headers)
and allow the user to select the seven good columns and then read in
the rest of data in the specified columns. My problem is parsing the
column header line as I get a core dump everytime. Unfortunately, I
have not programmed in C in a long time, so some of the dynamic memory
tricks are a little rusty for me.
Thanks,
~rob
discussed topic, but I have not come up with a way that quite meets myFrom searching through the FAQ and the web, this seems to be a widely
needs. I have a sequence of files that contain tab/space separated
data, with anywhere between 10 and 300 columns. Out of this data, I
need only seven columns, but these columns will be selected by the user
at runtime.
My original plan was to read in the first row (with the column headers)
and allow the user to select the seven good columns and then read in
the rest of data in the specified columns. My problem is parsing the
column header line as I get a core dump everytime. Unfortunately, I
have not programmed in C in a long time, so some of the dynamic memory
tricks are a little rusty for me.
Thanks,
~rob