From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e7a1468f4c8d4fdc X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-23 05:19:11 PST Path: nntp.gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!aix11.hrz.uni-oldenburg.de!uniol!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!cville-srv.wam.umd.edu!jeffyb From: jeffyb@wam.umd.edu (Jeffrey S Brush) Newsgroups: comp.unix.osf.osf1 Subject: Re: binary files in dec-alpha Date: 23 Nov 1994 13:19:11 GMT Organization: University of Maryland College Park Message-ID: <3avfgf$517@cville-srv.wam.umd.edu> References: <3at6lr$fv@sifon.cc.mcgill.ca> NNTP-Posting-Host: rac2.wam.umd.edu X-Newsreader: TIN [version 1.2 PL0] 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