When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
14 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
did you check what is the meaning of fread return value?
what do you mean as in the fact it returns 0 if it cannot read into the file?
it also returns 0 at the end of file
so you need to check what actually happened
fread() does not distinguish between end-of-file and error, and
callers must use feof(3) and ferror(3) to determine which
occurred.
asin whether it just reached the end of the file or if there was an error?
ah okay
sorry i am a beginner at all this im a bit confused how would i check for this?
those are just another functions to call
"error in code using fstream" is pretty misleading as you don't even use std::fstream xD