this code

XmlTextWriter bankWriter = null;
           bankWriter = new XmlTextWriter(Convert.ToString(first.Text));


...cant convert string to system.io.xmlwriter...invalid aguments

see Screenie


how do i fix this?

Got it...

XmlTextWriter bankWriter = new XmlTextWriter(Convert.ToString("H:\\Contacts\\" + first.Text + ".xml"), null);

for those who were wondering


please mark as solved


-T

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.