printing txt file

Oct 25, 2009 at 7:14am
Hi,
I have a problem here. I want to print characters of a text file on the console. I open a file using fopen(). But how to print???
and also, the pointer returned by fopen() points to what??? to first character of the txt file???
Oct 25, 2009 at 7:33am
Use fread().

Nothing you should care about, it is a layer of abstraction. You just pass it to fread()/fwrite() and it deals with it for you.
Oct 25, 2009 at 7:57am
Oct 25, 2009 at 1:01pm
But fread() returns me number of characters read, as an integer???
Topic archived. No new replies allowed.