procedure TForm1.Button1Click(Sender: TObject);
var
myfile:Textfile;
s:string;
i,j:integer;
begin
Assignfile(myfile,'cell.txt');
Reset(myfile);
i:=0;
while not eof(myfile) do
begin
readln(myfile,s);
showmessage(s);
end;
end;
var
txtlist:TStringList;
i:integer;
begin
txtlist:=TStringList.create;
txtlist.LoadFromFile('d:\test.txt');
for i:=0 to txtlist.count-1 do
begin
showmessage(txtlist.strings[i]);
end;
end;