Используя поток STD, вы можете использовать:
std::ifstream ifile(....);
ifile.seekg(0, std::ios_base::end);//seek to end
//now get current position as length of file
ifile.tellg();
Если вы имеете дело с файлом только для записи (std :: ofstream), то существуют другие методы:
ofile.seekp(0, std::ios_base::end);
ofile.tellp();