Re: getc() function and end of file

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ted Fines wrote:

>Anyway, my program always stops after only reading about 38,400 bytes. It
>appears that getc(infile) is returning -1 (a ctrl-Z presumably), causing 
>the program to quit.

Did you open it in binary mode? If not, that could be your problem.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu