From: an118 AT chebucto DOT ns DOT ca (Graham Howard Wile) Newsgroups: comp.os.msdos.djgpp Subject: NEED HELP reading header for pcx image file Date: 16 Dec 1996 16:11:14 GMT Organization: Chebucto Community Net Lines: 13 Message-ID: <593sb2$6k7@News.Dal.Ca> NNTP-Posting-Host: chebucto.ns.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I have written code that seems to read in the first 128 bytes, which is the header for the pcx file. But when I look at it, it's gobble-de-gook, you can't read it. I've even tried reading it as a pcx structure. All my reads were done on the file opened in binary mode. Once I read in the header via binary, it even shows as garbage when I try to access individual header elements via my structure member variable after reading it into the structure. Can anybody tell me what's wrong? Thanks, Graham --