It is necessary from file 1 to file 2 to transfer the city to which it takes less than 4 hours. I have an error somewhere with types ... i.e. he reads time in TXT and cannot compare it with the usual number or does not read time. How to fix it? Here is the text of the program
program lab3; uses crt; var time:0..5; gorod:real; fin, fout:text; begin clrscr; assign(fin,'1.txt'); assign(fout,'2.txt'); reset(fin); rewrite(fout); writeln(fout, 'gorod do kotorogo letet menee 4 chasov'); repeat readln(fin,gorod,time); until eof(fin) or (time<=4); if eof(fin) then writeln('takogo net') else writeln(fout, gorod, time); close(fin); close(fout); end.