Re: [NEWBIE][CODE] Files

From: Del (caminturn@earthlink.net)
Date: 03/26/01


Its Me Christian wrote:
>
> right now i have got it like
> strcpy(clan[num_of_clans].id, strtok(NULL, "\r\n")); but if i make id and
> int in the struct then it comes up with an error. and if i take the strtok()
> away and manually hardcode a number in there it works. so is there a way
> that strtok can make it return as a integer.
>

Just a suggestion:
There are several snippets that save/load data from ascii files.
Find one and follow the logic and/or cut out stuff ya don't need and past in
your stuff .. (there are also several clan snippets that does similar if
not the same as what you're trying to do).

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST