title: Invalid numeric input error in delphi
body: <p>I have a program to read list of competitors their scores from a text file: </p>
  
  <pre><code>var
    competition : TextFile;
    number : byte;
    name : array of string;
    score : array of array of byte;
    j : byte;
    i : byte;
  
  begin
    AssignFile(competition, 'korcule.txt');
    Reset(competition);
    ReadLn(competition, number);
    SetLength(name, number);
    SetLength(score, number, 4);
    for i := 0 to number - 1 do begin
      ReadLn(competition, name[i]);
      j := 0;
      While not EoLn(competition) do begin
        Read(competition, score[i, j]);
        inc(j);
      end;
    end;
    ReadLn;
    CloseFile(competition);
  end.
  </code></pre>
  
  <p>First line of the text file is number of competitors, then name and after name are the scores of actual people. </p>
  
  <pre><code>5
  John Smith
  1 8 4 6
  Marc Zuckerberg
  4 6 7 1
  Bill Gates
  3 8 4 1
  Johnny Rapid
  9 9 2 7
  Phillip Lauren
  4 7 3 1
  </code></pre>
  
  <p>I need to read the scores individually in multidimensional array like this myarray[1] = 1, myarray[2] = 8 and so on. Problem is that my code always gives me an error 'invalid numeric input'. What is the problem ?? </p>