Re: [Dev-C++] Simple question about reading files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel K. O. <dan...@ya...> - 2004-04-20 09:40:33
|
Alain Paschoud wrote:
>The loop is like :
>
>while (!EOF) {
> fread(&mycharbuffer, 1, 1, myfile);
>}
>
>How can I read a file so that every byte can be any value between 0x00 and 0xFF in this file ???
>
>
This is known as "the Pascal disease".
http://www.eskimo.com/~scs/C-faq/q12.2.html
I would recomend you to a tutorial that explains what functions are (EOF
is not a function) and how to do I/O in C.
http://www.geocities.com/tom_torfs/cintro.html
Daniel K. O.
|