如果还不行
var
tmppop: TStrings;
begin
//tmppop:=TStringList.Create;
if fileexists(ExtractFilePath(Application.ExeName)+'mail.dat') then
tmppop.loadfromfile(ExtractFilePath(Application.ExeName)+'mail.dat');
是不是应该
var
tmppop:Tstrings;
begin
try
tmppop:=TStrings.create;
try
if fileexits('.\mail.dat') then
tmppop.LoadFromFile('.\mail.dat');
except
showmessage('error');
end;
finally
tmppop.free;
end;
end;