Pascal - bad number format
- by Donator
Program:
program s;
type info = record
name, surname: string;
min, sek: integer;
end;
type arrays = array[1..50] of info;
var c, b: text;
A: arrays;
gr_sk,
grup_dal: integer;
begin
assign(c, 'info.txt'); reset(c);
read(c, gr_sk);
read(c, grup_dal);
id := 1;
read(c, A[id].name);
read(c, A[id].sek);
close(c);
end.
info.txt file:
3
4
yhgf
4
Please, tell me what is wrong with that. It says that it is bad number format for line 19 I guess.