usingSystem;usingSystem.IO;usingSystem.Text;usingSystem.Text.RegularExpressions;usingSystem.Collections;usingSystem.Xml;usingDotNetWikiBot;classMyBot:Bot{publicstaticvoidMain(){TextReaderreader=newStreamReader("text.txt");//this file needs to be in the executing directory.stringtoappend="\r\n"+reader.ReadToEnd();SiteenWP=newSite("http://en.wikibooks.org","HermesBot","*******");Pagep=newPage(site,"user:HermesBot/signpost");p.LoadEx();stringnewtext=p.text+"\r\n text to append";string[]linkArray=p.GetAllLinks();foreach(stringsinlinkArray){Pagep1=newPage(site,s);p1.LoadEx();stringnewtext1=p1.text+toappend;p1.Save(newtext1);}p.Save(newtext);}}