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