H everyone
I have problem in loading the array of records from the record file. when i run the program the counter increments but when i try to display the records it dosn't do it. i have done it this way is it wright?
PROCEDURE LoadRecArray(VAR AllClient:ClientArray);
VAR i;INTEGER;
BEGIN
assign(ClientrecFile, 'A;\CLIENT.REC');
RESET(clientRecFile);
i:=0;
WHILE NOT (EOF (ClientrecFile)) DO
BEGIN
i:i+1;
READ(ClientrecFile, AllClient);
END;
writeln(i ,' records loaded to the array')
end;