using system; using system.io; using system.collections;
class anagrams {
public static void main(string[] args) { streamreader din = file.opentext ("words.txt"); string str; stringtable st = new stringtable();
console.writeline("reading data and insterting into a stringtable."); while ((str=din.readline()) != null) { st.add(str); } console.writeline("printing out the stringtable."); foreach (string s in st) { console.writeline (s); }
console.writeline ("/r/npress return to exit."); console.read(); } }