-
Help with fread
Code:
mystring_reply = fread(buffer,1,file_size,infile);
the code above is sending a size_t value to mystring_reply and im looking to get a character array out of it. this is homework from a tutor and I am suppose to ask on forums like this when im confused so here I am! thanks!
btw im sticking to c code in this lesson, as would be the reason im not using cin/cout. if someone could explain to me how to do this right that would be great!
-
So if you're "sticking to C code", why did you ask this in the C++ forum?
The character array is in buffer. fread(3): binary stream input/output - Linux man page