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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!mcsun!ieunet!tcdcs!unix1.tcd.ie!willimsa
  3. From: willimsa@unix1.tcd.ie (WHY??)
  4. Subject: Re: Help reading a DOS file
  5. Message-ID: <willimsa.712064148@unix1.tcd.ie>
  6. Sender: usenet@cs.tcd.ie (NN required at ashe.cs.tcd.ie)
  7. Nntp-Posting-Host: unix1.tcd.ie
  8. Organization: Trinity College, Dublin
  9. References: <DAO.92Jul22104319@d62iggy.mitre.org>
  10. Distribution: comp.os.msdos.programmer
  11. Date: Sat, 25 Jul 1992 11:35:48 GMT
  12. Lines: 21
  13.  
  14. In <DAO.92Jul22104319@d62iggy.mitre.org> dao@d62iggy.mitre.org (David A. Ondzes) writes:
  15.  
  16.  
  17. >I need some help. One of my games writes it data to a file, and I would
  18. >like to read this file. When I type the file to the screen it shows up
  19. >as a bunch of happy faces etc ... so I am assuming it is a binary file.
  20. >Is this correct assumption ? I can make out some text in the file. I have
  21. >looked at the file with various hex edit programs to find out where the data
  22. >I want is.
  23. >    How do I read in the data ? I tried using fscanf(fd,"%x",&int). I would
  24. >like to be able to read in 2 hex digits at a time, because this is how I
  25. >saw the file with the hex editors mentioned above.
  26.  
  27. >    Any help involing reading files that are not ascii text would also
  28. >be appreciated.
  29.  
  30. There is a program called eddy6c1.zip , I think, and it disables the 8th
  31. bit when it looks at files, thus converting high code letters into lower 
  32. ones, it might help you.  It is available at garbo and simtel, in, I think
  33. the /pc/dirutil and pd1:<msdos.dskutl> directories respectively.
  34.