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. var 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 :). _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal