fread and fwrite are not recommended for use with structured data

Posted by forest58 on Stack Overflow See other posts from Stack Overflow or by forest58
Published on 2010-03-28T04:39:49Z Indexed on 2010/03/28 4:43 UTC
Read the original article Hit count: 247

Filed under:

A book beginning linux programming 3ed says "Note that fread and fwrite are not recommended for use with structured data.Part of the problem is that files written with fwrite are potentially nonportable between different machines." What does that mean exactly? what calls should I use if I want to write a portable structured data reader or writer? direct system calls?

© Stack Overflow or respective owner

Related posts about c