Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Read_btn_Click(object sender, RoutedEventArgs e)
- {
- String[] lines = File.ReadAllLines("C:\\Users\\Student\\Desktop\\big.txt");
- List<string> words = new List<string>();
- foreach (string l in lines)
- {
- string[] lineWords;
- lineWords = l.Split(new char[] { '.', '?', '!', ' ', ';', ':', ',', '*'}, StringSplitOptions.RemoveEmptyEntries);
- foreach (string word in lineWords)
- {
- words.Add(word);
- }
- }
- ListView.ItemsSource = words;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement