var file1:Textfile; v_str:string; begin OpenDialog1.InitialDir:=ExtractFilePath(application.ExeName); if OpenDialog1.Execute then begin assignfile(file1,OpenDialog1.FileName); reset(file1); while not system.Eof(file1) do readln(file1,v_str); end; closefile(file1); end;
repeat
i:=I+1;
readln(I);
until i=10;
file1:Textfile;
v_str:string;
begin
OpenDialog1.InitialDir:=ExtractFilePath(application.ExeName);
if OpenDialog1.Execute then
begin
assignfile(file1,OpenDialog1.FileName);
reset(file1);
while not system.Eof(file1) do
readln(file1,v_str);
end;
closefile(file1);
end;