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
Post a Comment