title: Pascal - bad number format
body: <p>Program:</p>
  <pre><code>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.
  </code></pre>
  <p>info.txt file:</p>
  <pre><code>3
  4
  yhgf
  4
  </code></pre>
  <p>Please, tell me what is wrong with that. It says that it is bad number format for line 19 I guess.<p></p>
  <p>If I change <code>min, sek: integer;</code> to <code>min, sek: string;</code> then it works. So as I understand, it reads number like string. How can it be? I have never experienced that before.</p>