Ok, Vinay, the eof character most likely isn't 255, I think you're referring to the value of EOF, which is generally -1. The Hex equivalent of -1 is 0xFF, which if is assigned to an unsigned char becomes 255, which is also 0xFF. EOF is the value that is returned by file i/o functions (i.e...