Re: How to make binary data portable?





Martin Ambuhl wrote:
> 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.

Is there any easy way to convert the data?

.



Relevant Pages

  • Re: How to make binary data portable?
    ... > Martin Ambuhl wrote: ... your best bet is to write numeric data as text. ... format, then read it in and convert it based upon that format. ... Randy Howard ...
    (comp.lang.c)
  • Re: adding up field columns in a file
    ... > I have a file with some columns of numeric data e.g. ... To add the first column, ... Shell Scripting Recipes: | My code in this post, if any, ... Prev by Date: ...
    (comp.unix.admin)
  • read in Matlab
    ... All files have numeric data. ... want to store in vector all of the 100's files names and than run a ... Please help, I run agains time. ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • adding up field columns in a file
    ... I have a file with some columns of numeric data e.g. ... recommend a quicker way? ... Prev by Date: ...
    (comp.unix.admin)
  • RE: adding text to a column of exsisting data
    ... If you want to add numeric data to numeric data, ... If you want to add character data to an existing cell entry, ... Prev by Date: ...
    (microsoft.public.excel.misc)