Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* binary files in dec-alpha
@ 1994-11-22 16:36 ricardo gutfraind
  1994-11-23 13:19 ` Jeffrey S Brush
  0 siblings, 1 reply; 2+ messages in thread
From: ricardo gutfraind @ 1994-11-22 16:36 UTC (permalink / raw)



Hi,

I tried to read in a SGI ( Indigo II)  binary files I generated in a  
dec-alpha running OSF/1. The files were made using the function fwrite of  
C.
There exists some incompatibility  and these files cannot be read by the  
Indigo II.
Is anybody aware what  the problem  can be? 

Thanks
Ricardo Gutfraind
McGill University
Montreal


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: binary files in dec-alpha
  1994-11-22 16:36 binary files in dec-alpha ricardo gutfraind
@ 1994-11-23 13:19 ` Jeffrey S Brush
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey S Brush @ 1994-11-23 13:19 UTC (permalink / raw)


ricardo gutfraind (gutfrain@ruiz.civil.mcgill.ca) wrote:

: Hi,

: I tried to read in a SGI ( Indigo II)  binary files I generated in a  
: dec-alpha running OSF/1. The files were made using the function fwrite of  
: C.
: There exists some incompatibility  and these files cannot be read by the  
: Indigo II.
: Is anybody aware what  the problem  can be? 

: Thanks
: Ricardo Gutfraind
: McGill University
: Montreal

Ricardo:

More data please!!  Did you use fopen(fname, "b") on each platform?
Can you read the file in the Alpha?  Is there a byte-swap issue
between the platforms (try writing a file with 'ABCD' as the first
4 bytes, then read them into a long and see what order they have)?
Is it float data, and if so are the FP representations different?

I've never had a problem like you described that wasn't due to one
of the above 'boo-boos'.  OTH, I've never been on an SGI machine...

-- Jeff Brush


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-11-23 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-22 16:36 binary files in dec-alpha ricardo gutfraind
1994-11-23 13:19 ` Jeffrey S Brush

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox