I
Immortal Nephi
Do C++ Standard Library have Get File Byte Size function in fstream
header? If not, I have to use C Run-Time library instead.
header? If not, I have to use C Run-Time library instead.
Do C++ Standard Library have Get File Byte Size function in fstream
header? If not, I have to use C Run-Time library instead.
Do C++ Standard Library have Get File Byte Size function in
fstream header?
No.
If not, I have to use C Run-Time library instead.
And thus spake Immortal Nephi <[email protected]>
Sat, 13 Feb 2010 21:10:28 -0800 (PST):
You might try the following, without having it checked too thoroughly:
stream.seekg(0, std::ios_base::end);
std::streampos length = stream.tellg();
stream.seekg(0);
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.