From: | Jack York |
Date: | 23 Aug 2001 at 18:58:54 |
Subject: | [amiga-c] Re: Saving and reading structs |
Hello Jonathan
On 23-Aug-01, Jonathan Adamczewski wrote:
>> Hmm, hadn't thought of this. Would I read in the file using fgets and
>> parse the line based on the sizes of the struct members?
>
> Sounds about right...
>
> fgets a line
> [0..(sizeof(struct)-1)] will be the struct
> [sizeof(struct)..endOfLine-1] will be terminated string.
Thanks for your help Jonathan. I just gave it a try and it works fine. :)
Jack
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Do you need to encrypt all your online transactions? Secure corporate intranets? Authenticate your Web sites? Whatever
security your site needs, you'll find the perfect solution here!
http://us.click.yahoo.com/Bre3tC/Q56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/