Yes, but you basically have to do it manually.
The basic algorithm is as follows:
- Seek to the end of the file with
is.seekg(0, is.end)
- Determine the file size with
is.tellg()
- Repeatedly seek backwards and read chunks of the file until you reach the front