Example #1
0
        void leermatriz()
        {
            string reglas = "GR2slrRulesId.txt";
            string Lectura;

            string[]     separador = { "\t" };
            StreamReader Leer      = new StreamReader(reglas);

            Lectura = Leer.ReadLine();
            while (Lectura != null)
            {
                string[] cont = Lectura.Split('\t');
                ReglasList.Add(new Point(Convert.ToInt32(cont[0]), Convert.ToInt32(cont[1])));
                Lectura = Leer.ReadLine();
            }
            Leer.Close();
        }
Example #2
0
        void tabla()
        {
            string       Tabla = "GR2slrTablebien.txt";
            string       Lectura;
            StreamReader Leer = new StreamReader(Tabla);

            Lectura = Leer.ReadLine();
            while (Lectura != null)
            {
                string[]   cont = Lectura.Split('\t');
                List <int> num  = new List <int>();
                for (int i = 0; i < cont.Length; ++i)
                {
                    num.Add(Convert.ToInt32(cont[i]));
                }
                ListaAnalizador.Add(num);
                Lectura = Leer.ReadLine();
            }
            Leer.Close();
        }