Advertisement
pushrbx

Untitled

May 9th, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. List<string> words = new List<string>();
  2.  
  3.             using (StreamReader sr = new StreamReader("szavak.txt"))
  4.             {
  5.                 string content = sr.ReadToEnd();
  6.                 string[] lines = content.Split(Environment.NewLine.ToCharArray());
  7.  
  8.                 foreach (var line in lines)
  9.                 {
  10.                     words.Add(line);
  11.                 }
  12.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement