[fpc-pascal] System.Write broken?

Elio Cuevas Gómez elio at mixtk.com
Thu Jul 14 02:55:33 CEST 2005

El Mié 13 Jul 2005 17:50, John Coppens escribió:
> How is Mapa declared? If as integers, it should work. This does not work
> with strings.
  MapFile: Text;
  Mapa: array[0..MAX_MAPX, 0..MAX_MAPY] of Integer;

Yes, it's as integers.
> It'd be a little more elegant if you do:
> for j := 0 to MAX_MAPY do begin
>   for i := 0 to MAX_MAPX do
>     Read(MapFile, Mapa[i, j]);
>   ReadLn(MapFile);
> end;
> garanteeing you read MAX_MAPY lines
I tried your version, but didn't make much diference. Looks like Write is 
indeed broken, i'll report it as a bug. Thanks for all your help :).

More information about the fpc-pascal mailing list