Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.IO;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[,] cities = new int[12, 12];
- string path = @"S:\EMA-18-2\Kasov\2\ConsoleApplication1\price.txt";
- try
- {
- Console.WriteLine("******считываем построчно********");
- using (StreamReader sr = new StreamReader(path, System.Text.Encoding.Default))
- {
- string line;
- while ((line = sr.ReadLine()) != snull)
- {
- {
- int town1 = 0;
- int town2 = 0;
- int price = 0;
- int count = 0;
- string[] km = line.Split(new char[] { ' ' });
- foreach (string s in km)
- {
- Console.WriteLine(s);
- Console.WriteLine(km.Length);
- //Console.WriteLine(line);
- }
- }
- }
- }
- catch (Exception e)
- {
- Console.WriteLine(e.Message);
- }
- int[,] array = new int[13, 13];
- for (int i = 0; i < 13; i++)//строка
- {
- for (int j = 0; j < 13; j++)//столбец
- {
- array[i, j] =
- }
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement