Re: How to make binary data portable?
- From: Martin Ambuhl <mambuhl@xxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 17:33:36 GMT
PengYu.UT@xxxxxxxxx wrote:
Hi,
I write the content of a in file "data" (in Sun Machine). Then I read "data" in both SunOS and linux. But the result is different. Do you know how to make it binary data portable.
Binary numeric data is inherently not portable. If you want files to be portable, your best bet is to write numeric data as text. Even that assumes that the different implementations|platforms use a common form of encoding text. You will find that when transporting data from one implementation|platform to another you still need to consider whether you need to convert that data.
.
- Follow-Ups:
- Re: How to make binary data portable?
- From: PengYu.UT@xxxxxxxxx
- Re: How to make binary data portable?
- From: Walter Roberson
- Re: How to make binary data portable?
- References:
- How to make binary data portable?
- From: PengYu.UT@xxxxxxxxx
- How to make binary data portable?
- Prev by Date: Re: why use -> (not .) with pointers?
- Next by Date: Re: How to make binary data portable?
- Previous by thread: How to make binary data portable?
- Next by thread: Re: How to make binary data portable?
- Index(es):
Relevant Pages
|