programming question
Jan. 25th, 2006 02:05 pmIf I have a file with a bunch of values seperated by '|', what is the best way
for reading them if I'm using C? The lines look like a|b|c|d|e
where a,b,c,d can be floats, integers, or even strings. It seems like there should
be an easy way to read this without having to %*c past the | characters, but I'm stumped.
for reading them if I'm using C? The lines look like a|b|c|d|e
where a,b,c,d can be floats, integers, or even strings. It seems like there should
be an easy way to read this without having to %*c past the | characters, but I'm stumped.
no subject
Date: 2006-01-25 07:35 pm (UTC)I believe this is ANSI, but not sure.
Not sure what will happen with end of lines. I usually read a whole line via other means then sscanf it apart, if needed.
no subject
Date: 2006-01-25 07:40 pm (UTC)but when I add that, nothing else in the line seems
to get added. Frustrating.
no subject
Date: 2006-01-25 09:46 pm (UTC)