我用以下方法较快的实现了:
int iFileHandle;
int iFileLength;
char *pszBuffer;
iFileHandle = FileOpen("G://temp.log", fmShareDenyRead);
iFileLength=FileSeek(iFileHandle,-100,2);
pszBuffer = new char[101];
for (int i=0;i<=100;i++)
pszBuffer=' ';
iBytesRead = FileRead(iFileHandle, pszBuffer, 100);
FileClose(iFileHandle);
直接读取最后100个字节