Ejemplo n.º 1
0
        private void ReadFunction(string path)
        {
            int length = 0;

            string[] lines = File.ReadAllLines(path);
            for (int i = 4; i < lines.Length; i++)
            {
                if (length != 0 && length != lines[i].Length - 2)
                {
                    throw new ArgumentException("Ошибка во входных данных.");
                }
                else
                {
                    length = lines[i].Length - 2;
                }
                if (lines[i][0] == '0')
                {
                    False.Add(lines[i].Substring(2));
                }
                else if (lines[i][0] == '1')
                {
                    True.Add(lines[i].Substring(2));
                }
            }
            Length = length;
        }