Newsgroups: comp.os.msdos.djgpp From: Matthias Ho Chui Shiong Subject: order of bytes written to files... Content-Type: text/plain; charset=us-ascii Message-ID: <350EC38F.BD6@sap-ag.de> Sender: news AT sap-ag DOT de (USENET News System) Reply-To: chui DOT shiong DOT ho AT sap-ag DOT de Content-Transfer-Encoding: 7bit Organization: SAP Asia (Singapore) Mime-Version: 1.0 Date: Tue, 17 Mar 1998 18:40:15 GMT Lines: 13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, i am matthias. I have a problem. when i write the long value 49478 to a binary file using borland as the compiler, the hexa content of the file turn out to be 46 C1 00 00 which is out I want. However when I compile the same program under RHIDE with only compiler option -m486, the result written to the binary file is 00 00 46 C1. Can someone one plse advise me on this. Thank you very much.