From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3f66cb31a9300a74 X-Google-Attributes: gidfee84,public From: gallatin@davinci.isds.duke.edu (Andrew Gallatin) Subject: Re: Endian problems... Date: 1995/11/13 Message-ID: <488172$j3p@news.duke.edu>#1/1 X-Deja-AN: 119289335 references: <47me7b$9an@taco.cc.ncsu.edu> <47qk6j$7uj@news.duke.edu> <1995Nov13.114607.45664@yogi.urz.unibas.ch> organization: Institute of Statistics and Decision Sciences, Duke U. newsgroups: comp.unix.osf.osf1 In article <1995Nov13.114607.45664@yogi.urz.unibas.ch>, Lukas Rosenthaler wrote: >Then You have been lucky - under normal circumstances this will not work. >That's because swapping of a 4 byte value (int) and of a 2 byte value (short) >is different. If You have binary files with mixed data, let's say >doubles, floats, ints, shorts and strings, then every item has to be swapped >appropriately! The original poster said: I want to *read* a IEEE floating point file and *write* a dec-native unformatted So I assumed that the file was all floats. I probably should have included your warning in case that wasn't true... Drew ############################################################################## # Andrew Gallatin, Computer Project Manager # # Institute of Statistics and Decision Sciences # # Box 90251, Duke University, Durham, NC 27708-0251 # ##############################################################################