Binary file: Platform-Independent
-
I need to read and write data in binary format, but working on any platform. For example, a file created on Windows should be read on Unix. I can’t find any info on that. Anyone can give me hints? TIA.
Hmmm, I can't see why this would be any great problem. Most importantly you need to make sure that every platform uses the same format for the binary files (but that's a given). Platform to platform you're going find differences in the number of bits used to represent a value, how arrays are stored, and the whole big-endian, little-endian thing as well. I think if you stick to using 8 bit bytes and use your own routines for building the binary files, you should be ok?
-
I need to read and write data in binary format, but working on any platform. For example, a file created on Windows should be read on Unix. I can’t find any info on that. Anyone can give me hints? TIA.
Goto http://chesworth.com/pv/downloads/libs.htm and download bllib11.zip This will give you a start.