Text 마지막에서 10줄 읽어오기
long GetLastNLine(int nLastLine) { int nLineCount = 0; char ch = '\0'; TCHAR szBuf[8192] = _T(""); int nResult = 0; long lCurPos = 0; FILE* fp = fopen("20121119_10.log", "r"); fseek(fp, -1, SEEK_END); //fseek(fp, -1, SEEK_CUR); while( 1 ) { ch = (char)fgetc(fp); if( ch == '\n' ) { nLineCount++; if( nLineCount >= nLastLine ) { break; } fseek(fp, -1, SEEK_CUR); } nResult = fseek(fp, -2, SEEK_CUR);..