Language:
Русский
English
{Findfrst.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the FindFirst and FindNext procedures.}
uses WinDos,WinCrt;
var
DirInfo: TSearchRec;
begin { Change Archive to faArchive }
FindFirst('*.PAS', faArchive, DirInfo); {
Same as DIR *.PAS }
while DosError = 0 do
begin
Writeln(DirInfo.Name);
FindNext(DirInfo);
end;
end.