[ale] Stupid C Question
Jeff T
ale at jeffx.com
Wed Mar 21 17:33:19 EST 2001
How about something like strtok? Then if you pass it in null as
its first parameter you can walk through the line buffer.
Jeff
At Wednesday, 21 March 2001, Chris Fowler <ChrisF at computone.com> wrote:
>I have a file that looks like this
>
>DATA:DATA:DATA
>DATA:DATA:DATA
>
>Each line is a new record and the DATA of each one can be of variable
length. I have tried to read the whole file in buffer and use sscanf
to parse but that seems to yield no results. I want to place each
piece of DATA into character arrays. The number of records in the
file could be variable as well. Any help on this would be greatly
appreciate. If you could point me to good documentation on reading,
writing, parsing, and changing of disks files using C, I would appreciate
that to. I have many books on C but non really explain how to work
with files. Most of my files are config files that I am trying to
create an interface to change them.
>
>Thanks,
>Chris
>
>
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list