Either would be fine. CFile is the parent of CStdioFile.
Here is one approach with CFile (and because of inheritance will work with stdio as well)
CFile f;
f.Open("Filename",CFile::modeRead|CFile::shareDenyNone);
// if you know how many bites the last value is set numBytes to the negative of that, if not, the max size a value can be is 64 bits (unlikely) or 32 (most probable)
f.SeekToEnd();
int numbBytes = sizeof(int)*(-1)
f.Seek(numBytes);
int val;
f.Read(&val,sizeof(int));
Good luck.
Matt