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.IO;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- StreamReader reader = new StreamReader("wordlist.txt");
- string line;
- string baseChars = "bfcdae";
- bool match;
- while (!reader.EndOfStream)
- {
- line = reader.ReadLine();
- if (line.Length == 8)
- {
- match = true;
- foreach (char c in baseChars)
- {
- if (!line.Contains(c))
- {
- match = false;
- break;
- }
- }
- if (match)
- {
- Console.WriteLine("Match: {0}", line);
- }
- }
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement