예제 #1
0
 public Memoria(string nombre)
 {
     this.registros = MetodosAuxiliares.leeArchivo(nombre);
     this.filas     = MetodosAuxiliares.calculaTamañoMemoria(registros.First());
     inicio         = registros.First().Substring(7, 6);
     this.mapa      = new string[filas, columnas];
     tamaño         = registros.First().Substring(13, 6);
     for (int i = 0; i < filas; i++)
     {
         for (int j = 0; j < columnas; j++)
         {
             mapa[i, j] = "FF";
         }
     }
 }