home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!uwm.edu!ogicse!usenet.coe.montana.edu!Msu.oscs.montana.edu!ooprb
- From: ooprb@Msu.oscs.montana.edu
- Newsgroups: comp.lang.c
- Subject: Reading 0x0D in a binary file returns 0
- Message-ID: <00963079.30E098C0@Msu.oscs.montana.edu>
- Date: 3 Nov 92 03:52:37 GMT
- Article-I.D.: Msu.00963079.30E098C0
- Sender: usenet@coe.montana.edu (USENET News System)
- Reply-To: ooprb@Msu.oscs.montana.edu
- Organization: Montana State University
- Lines: 13
-
- Could someone help me with reading in 0x0D in a binary file?
- I've been using this:
- byte[ptr] = fgetc(in);
- I've got it to read everything except 0x0d. It is assigning
- byte[ptr] to 0. Does anyone know what I am doing wrong? How
- to fix this? Examples?
-
- Thanks in advance...
-
- Please E-Mail to:
- ooprb@trex.oscs.montana.edu
-
- Rocky
-