public void Page_Load(object sender, System.EventArgs e) { StreamWriter sw = new StreamWriter(@"c:/mcad/audit.txt"); sw.WriteLine("\n"+"col3"+"\t"+"col4"); sw.Close(); //write to xml XmlTextWriter xr = new XmlTextWriter(@"c:/mcad/XMLFile1.xml",null); xr.WriteStartDocument(); xr.WriteStartElement("Product"); xr.WriteElementString("Name","Jack"); xr.WriteElementString("Address","Jack"); xr.WriteElementString("Address2","Jack"); xr.WriteElementString("Email","Jack"); xr.WriteEndElement(); xr.Flush(); xr.Close(); }