C++ Language/Std/FilesystemAccess/SizeOfFile

There are two ways of measuring a file's size. Either call, or access the   data member of an object returned by.

Additional information about measuring the size of a file