#include <io.h>
int GetFileSize(const char * pszFilePath)
{
FILE *fp = fopen(pszFilePath, "rb");
VERIFY(fp != NULL);
const int nFile = _fileno(fp);
const int nFileLength = _filelength(nFile);
fclose(fp)
return nFileLength;
}