可以啊,但关键是你每一行都不一样长,有点麻烦
下面是读第一行
var
RFile:TextFile;
str1:String;
i:integer;
ReadSample:string;//
readresult:string;
ss:string;
// samplename:string[2];//TH的字符个数
begin
str1:='c:/a.txt';//换成你的文件名
AssignFile(RFile,Str1);
Reset(RFile);
ReadLn(RFile,ReadSample);
ss:='';
readresult:='';
for i:=1 to length(readsample) do
begin
if readsample='=' then break;
ss:=ss+readsample;
end;
for i :=length(ss)+2 to length(readsample) do
begin
readresult:=readresult+readsample;
end;