Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<string> words = new List<string>();
- using (StreamReader sr = new StreamReader("szavak.txt"))
- {
- string content = sr.ReadToEnd();
- string[] lines = content.Split(Environment.NewLine.ToCharArray());
- foreach (var line in lines)
- {
- words.Add(line);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement