home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8009 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!sun-barr!ames!agate!linus!linus.mitre.org!mbunix!dao
  3. From: dao@d62iggy.mitre.org (David A. Ondzes)
  4. Subject: Help reading a DOS file
  5. Message-ID: <DAO.92Jul22104319@d62iggy.mitre.org>
  6. Sender: news@linus.mitre.org (News Service)
  7. Nntp-Posting-Host: d62iggy.mitre.org
  8. Reply-To: picasso@bass.bu.edu
  9. Organization: The Mitre Corp., Bedford, MA.
  10. Distribution: comp.os.msdos.programmer
  11. Date: Wed, 22 Jul 1992 15:43:19 GMT
  12. Lines: 23
  13.  
  14.  
  15. I need some help. One of my games writes it data to a file, and I would
  16. like to read this file. When I type the file to the screen it shows up
  17. as a bunch of happy faces etc ... so I am assuming it is a binary file.
  18. Is this correct assumption ? I can make out some text in the file. I have
  19. looked at the file with various hex edit programs to find out where the data
  20. I want is.
  21.  
  22.     How do I read in the data ? I tried using fscanf(fd,"%x",&int). I would
  23. like to be able to read in 2 hex digits at a time, because this is how I
  24. saw the file with the hex editors mentioned above.
  25.  
  26.     Any help involing reading files that are not ascii text would also
  27. be appreciated.
  28.  
  29.  
  30. Please send replys to 
  31. picasso@bass.bu.edu
  32.  
  33.  
  34. Thank you
  35. David Ondzes
  36.  
  37.