Контрольная работа: Упорядочивание элементов файла
if IOResult <> 0 then
begin
WriteLn('File ', FileName, ' open error.');
Exit
end;
i:= 1;
Seek(TmpFile, 0);
while (not Eof(TmpFile)) and (i <= MaxRecCount) do
begin
Read(TmpFile, RecArr[i]);
Inc(i)
end;
Close(TmpFile);
RecArrLoadFromFile:= i
end;
function ViewMenu: char;
var
c: char;
begin
ViewMenu:= '0';
ClrScr;
WriteLn;
WriteLn;
WriteLn('_________________________________');
WriteLn('| Menu |');
WriteLn('---------------------------------');
WriteLn('| 1. Input records to list |');
WriteLn('| |');
WriteLn('| 2. Load list from file |');