Path: utzoo!attcan!uunet!timbuk!cs.umn.edu!uc!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga Subject: Re: C standard across machines (question). Message-ID: <6930@sugar.hackercorp.com> Date: 30 Oct 90 12:40:42 GMT References: <43072@eerie.acsu.Buffalo.EDU> Reply-To: peter@sugar.hackercorp.com (Peter da Silva) Organization: Sugar Land Unix - Houston Lines: 17 You have three choices: o Choose one end of the word, and write it out byte-by-byte. o Flip your words in memory, then use fwrite. o Use an intermediate transfer format. I would suggest the third choice. And I'd suggest that if there's an existing standard for whatever you're doing (bitmaps, say) use it. There is a whole family of standards for things like video, audio, and music on the Amiga called Interchange File Format. If there is no standard, use a text format unless you're dealing with huge databases. This way you can edit your files to patch up problems and for debugging using a regular text editor. (Oh, I wish .info files were text!) -- Peter da Silva. `-_-' .