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.IO;
- namespace ConsoleApplication32
- {
- class Program
- {
- static void Main(string[] args)
- {
- int i = 0;
- string[] szöveg = new string[10];
- string[] szöveg2 = new string [100];
- StreamReader sr = new StreamReader("próba.txt", Encoding.Default);
- while (!sr.EndOfStream)
- {
- string próba = sr.ReadLine();
- szöveg[i] = próba;
- Console.WriteLine(szöveg[i]);
- i++;
- }
- sr.Close();
- for (int j = 0; j < szöveg2.Length; j++)
- {
- szöveg2 = szöveg[0].Split(' ');
- }
- foreach (string word in szöveg2)
- {
- Console.WriteLine(word);
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement