On Wed, 13 Jul 2005 16:50:03 -0500 Elio Cuevas Gómez <[EMAIL PROTECTED]> wrote:
> The code to read the file looks like this (yeah, bad programming i > know): for j := 0 to MAX_MAPY do > for i := 0 to MAX_MAPX do > Read(MapFile, Mapa[i, j]); > How is Mapa declared? If as integers, it should work. This does not work with strings. 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 John _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal