Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get this into a string variable?
Message
From
09/05/2008 15:30:14
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
How do I get this into a string variable?
Miscellaneous
Thread ID:
01316145
Message ID:
01316145
Views:
58
Newbie question. I have the following snippet of C# code that writes the contents of "SearchResponse" to a file. How can I get the contents into a string variable instead?
//XMLize the Manifest object to disk
FileStream fsSearchResponse = new FileStream(System.Windows.Forms.Application.StartupPath + "/xmlresponse.xml", FileMode.Create);
XmlSerializer xmlizer = new XmlSerializer(typeof(SearchResponse));

//serialize the manifest object
xmlizer.Serialize(fsSearchResponse, iw.SearchResponse);

fsSearchResponse.Close();
TIA
Mike
Next
Reply
Map
View

Click here to load this message in the networking platform