B
Brian
I have an XML file that I want to read in and pass as a string to a
stored procedure. I am having trouble getting the file into a string.
I am using a TextReader to read the file in, but my string that I end
up with has a backslash character in front of all the double quotes.
How do I get a string from my file that doesn't have all these extra
characters? Is there an easier way to do this. Here is the code I am
using to read the file.
TextReader r = new StreamReader(c.FileName);
while ((input=r.ReadLine())!=null)
{
strXML += input;
}
Thanks,
Brian
stored procedure. I am having trouble getting the file into a string.
I am using a TextReader to read the file in, but my string that I end
up with has a backslash character in front of all the double quotes.
How do I get a string from my file that doesn't have all these extra
characters? Is there an easier way to do this. Here is the code I am
using to read the file.
TextReader r = new StreamReader(c.FileName);
while ((input=r.ReadLine())!=null)
{
strXML += input;
}
Thanks,
Brian