Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

fgetc() function in C Programming Language

Hello i am trying to learn to read files in c specifically a txt file called Hello (It has in the word Hello ) and i am using the code from the page https://www.tutorialspoint.com/c_standard_library/c_function_fgetc.htm

but it prints nothing after some experiment i find that it the FILE pointer gets in the eof

I am using the dev-c++ what i do is to drag the txt file from the desktop and drop it on the project i think that is my mistake but i can not think another way to put a file in dev-c++

Thank you!


0 Answer
Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.