IŽd like to read in some bytes from a file, but first I need to know the file size. How does one do that in C++?
Printable View
IŽd like to read in some bytes from a file, but first I need to know the file size. How does one do that in C++?
One solution is seekg(0, std::end) and tellg().
Kuphryn
Minor correction
Code:seekg(0, ios::end);