public void CreateFiles(object o) {
for (int i = 1; i < 1000; i++) {
// Create an XMLDocument instance
XmlDocument doc = new System.Xml.XmlDocument();
// Load the Xml String into XmlDocument
doc.LoadXml("<Root></Root>");
// Save the document
doc.Save("C:\\karan\\" + i.ToString() + ".xml");
}
MessageBox.Show("done");
}