c++ - Getting the file size of a text file without opening in binary mode -


i'm trying size of text file in c++. know can seek end of file, file.tellg(), read doesn't work in files opened in text mode.
have open in binary mode then? , what? open again in text mode? doesn't seem efficient...

is there better way it?

thanks.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -