Advertisement
finySTAR

splitelse

Mar 26th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.92 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.IO;
  7.  
  8. namespace robot
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             Console.WriteLine("1.Feladat");
  15.             StreamReader olvas = new StreamReader(@"C:\Users\finyw\Desktop\Erettsegi practice\e_infoforras_08okt_fl\Forrasok\4_Robot\program.txt", Encoding.Default);
  16.             List<string> robotcodes = new List<string>();
  17.             while (!olvas.EndOfStream)
  18.             {
  19.                 robotcodes.Add(olvas.ReadLine());
  20.                
  21.             }
  22.             for (int i = 0; i < robotcodes.Count; i++)
  23.             {
  24.                 string[]splitelendo= robotcodes[i].Split(' ');
  25.                 string sp = splitelendo[i];
  26.             }
  27.             Console.WriteLine("2.Feladat");
  28.             Console.ReadLine();
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement