Answer the question
In order to leave comments, you need to log in
How to find out how many bytes std::ifstream.read() has read?
Good evening! How to find out how many bytes the read method has read?
while (!file.eof())
{
char* tmp = new char [BUFSIZE];
file.read(tmp, BUFSIZE);
buf.addData(tmp, BUFSIZE);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question