From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: How to change numbers to HEX? Date: Thu, 30 Jul 1998 09:27:56 -0400 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 14 Message-ID: <35C074DC.7BB0@cam.org> References: <01bdbade$b8c70a40$4a6cc5c3 AT default> NNTP-Posting-Host: dialup-678.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit CC: pekkaka AT dlc DOT fi To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Finland wrote: > here's my prroblems .. > > 1.the HEX's are written backwards in the savefile > 2.how do i get the comp to write them backwards? or read? > 3.then the program should change numbers to hex and hex to numbers, how > do i write this?. you are either confused, or you don't explain very well your problem. Is your savefile a binary file or a text one? do you use something like fwrite() to write to it? if yes, your decimal numbers are automatically converted when you write to the file and when you read, you supply decimals and you get decimals. if this is not the case, please explain more.