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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -