Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing stream reader content to text file

Status
Not open for further replies.

yahoo182

Programmer
Jul 5, 2005
70
CA
Hi I think I am pretty close, but basically I have a streamReader that reads the xml file
Code:
StreamReader xmlStream = getXMLFromServer(url);

    while (xmlStream.Peek() != -1) {
      Console.WriteLine(reader.ReadLine());
    }
and what i need to do is to save this entire stream as a xml file in my directory.

any help is much appriciated :)

Thanks.

 
You might want to look at the XmlTextReader and XmlTextWriter classes in System.XML

--Brad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top