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 Task1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] lines = File.ReadAllLines("dictionary.txt");
- HashSet<string> dictionary = new HashSet<string>(lines);
- var data = File.ReadLines("text.txt").GetEnumerator();
- while (data.MoveNext())
- {
- foreach(string word in data.Current.Split(' '))
- {
- if (dictionary.Contains(word))
- {
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment