Eray Ozkural (exa) writes:
> while (!feof(stream)) {
There's your problem. (well, one of them, at least.)
http://www.eskimo.com/~scs/C-faq/q12.2.html
--
There is no TRUTH. There is no REALITY. There is no CONSISTENCY. There
are no ABSOLUTE STATEMENTS. I'm very probably wrong. -- BSD fortune(6)