using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Xml;
using DotNetWikiBot;
class MyBot : Bot
{
public static void Main()
{
TextReader reader = new StreamReader("text.txt"); //this file needs to be in the executing directory.
string toappend = "\r\n" + reader.ReadToEnd();
Site enWP = new Site("http://en.wikibooks.org", "HermesBot", "*******");
Page p = new Page(site, "user:HermesBot/signpost");
p.LoadEx();
string newtext = p.text + "\r\n text to append";
string[] linkArray = p.GetAllLinks();
foreach (string s in linkArray)
{
Page p1 = new Page(site, s);
p1.LoadEx();
string newtext1 = p1.text + toappend;
p1.Save(newtext1);
}
p.Save(newtext);
}
}