Should I prefer using basic_istream::tellg() or filesystem::file_size()?
Suppose I have a std::filesystem::path
, which I then open as an std::ifstream
, and suppose that I want to determine its size (e.g. maybe I want to read the whole file).
Should I prefer using basic_istream::tellg() or filesystem::file_size()?
Suppose I have a std::filesystem::path
, which I then open as an std::ifstream
, and suppose that I want to determine its size (e.g. maybe I want to read the whole file).