paul, you may need to use something larger than unsigned, like wchar or something similar. Also, it might just be easier if you get the size of the file, and read that many bytes rather than fgetc over and over again.
Thanks, Tyler Littlefield email: [EMAIL PROTECTED] web: tysdomain-com Visit for quality software and web design. skype: st8amnd2005 ----- Original Message ----- From: boogiebehometh To: [email protected] Sent: Friday, November 07, 2008 3:08 AM Subject: [c-prog] EOF Misinterpretation 77-1A Hi guys, Help will be greatly appreciated. when reading characters from a file & printing them to screen as Hex as a test programme, my programme keeps mis-interpreting the sequence "0x77" followed by "0x1A" as an EOF. I've confirmed this with multiple data binary files and tele results of my programme with http://mark0.net/hexdump.html I am performing getc() or fscanf() into a signed/unsigned character. Please help! t_T cheers, Paul C [Non-text portions of this message have been removed]
