Alternatives to fread and fwrite 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:53 UTC
Read the original article
Hit count: 352
c
|portability
The book Beginning Linux Programming (3rd ed) 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