0

static

void Main(string[] args)
        {
            string[] lines = File.ReadAllLines(@"C:\Users\User\Desktop\data.txt");
            int[,] num = new int[lines.Length, lines[0].Split(' ').Length];
            for (int i = 0; i < lines.Length; i++)
            {
                string[] temp = lines[i].Split(' ');
                for (int j = 0; j < temp.Length; j++)
                    num[i, j] = int.Parse(temp[j]);
            }
        }

0 Answers0