const
MAXLINES=10000;
type
TMyArray:array [0..MAXLINES] of string;
var
hFile:TextFile;
i:integer;
txtArray:TMyArray;
begin
AssignFile(hFile,'C:/shenqw.Txt');
Reset(hFile);
i:=0;
while (not Eof(hFile) and (i<MAXLINES) do
begin
Readln(hFile,txtArray);
Inc(i);
end;
CloseFile(hFile);
end;