However, when I try to run my program to encrypt a file of roughly 70 kb, ut produces an encrypted file of about 50 bytes, so obviously it is finding EOF before it's supposed to. Anyone know why this is happening?
EDIT: I'm also doing error checking further down the road, and nothing indicates that EOF is caused by any error.
EDIT: Allright, changing it to int did the trick :) Thanks! It's kinda weird though, because I'm pretty sure I've done it this way using char before...