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;
- using System.Windows.Forms;
- namespace ConsoleApplication1 {
- class Program {
- [STAThread]
- static void Main(string[] args) {
- HashSet<string> words = new HashSet<string>(File.ReadAllLines(@"D:\SVN\Misc\TWL06.txt"));
- StringBuilder sb = new StringBuilder();
- foreach (string w in words) {
- foreach (char c in w) {
- string cs = c.ToString();
- string newWord = w.Replace(cs, cs + cs);
- if (words.Contains(newWord)) {
- sb.AppendLine(String.Format("{0} -> {1}", w, newWord));
- }
- }
- }
- Clipboard.SetText(sb.ToString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement