Контрольная работа: Упорядочивание элементов файла
'2': begin
Write('Get file name :');
ReadLn(FileName);
FileName:= '.\' + FileName;
RecArrInit(RecArr);
RecCount:= RecArrLoadFromFile(FileName, RecArr);
WriteLn('Load ', RecCount, ' records in list.')
end;
'3': begin
if RecCount > 0 then
FindInRecArr(RecArr)
else
WriteLn('List is empty.')
end;
'4': begin
if RecCount > 0 then
begin
Write('Input file name :');
ReadLn(FileName);
FileName:= '.\' + FileName;
RecCount:= RecArrSaveToFile(FileName, RecArr);
WriteLn('Save ', RecCount, ' records from file ', FileName, '.')
end
else
WriteLn('List is empty.')
end;
'5': begin
if RecCount > 0 then
PrintRecArr(RecArr)