function FileSeek(Handle, Offset, Origin: Integer): Integer
overload;
function FileSeek(Handle: Integer
const Offset: Int64
Origin: Integer): Int64
overload;
Description
Use FileSeek to reposition the read/write point in a file that was opened with FileOpen or FileCreate. Handle is the file handle that was returned by FileOpen or FileCreate.
Offset specifies the number of bytes from Origin where the file pointer should be positioned. Origin is a code with three possible values, denoting the beginning of the file, the end of the file, and the current position of the file pointer.
Origin Action
0 The file pointer is positioned Offset bytes from the beginning of the file.
1 The file pointer is positioned Offset bytes from its current position.
2 The file pointer is positioned Offset bytes from the end of the file.
利用fileseek ,fileread,一个一个字节读,然后判断,这是比较苯的办法,主要是不知道你的文件的具体格式
如果能用readln 更好