Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long long getFileSize(const string& filename)
- {
- ifstream fin;
- fin.open(filename, ios::ate);
- long long fileSize = fin.tellg();
- fin.close();
- return fileSize;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement