Reading text file problem

  • Thread starter Thread starter Tim Kelley
  • Start date Start date
T

Tim Kelley

I am using a streamreader to read a one line text file. The line looks like
this:
"99999","04/30/2007","XXXXXXXX","XXXXX, XX","XX",""

When the line is read in I get this: i

"\"99999\",\"04/30/2007\",\"XXXXXXXXXX\",\"XXXXXX, XX\",\"XX\",\"\""


I don't get where all the \ are coming from. Is there a different method I
should be using to read the file? I tried to remove them using replace, but
it didn't work.

Thanks.
 
Tim Kelley said:
I am using a streamreader to read a one line text file. The line looks like
this:
"99999","04/30/2007","XXXXXXXX","XXXXX, XX","XX",""

When the line is read in I get this: i

"\"99999\",\"04/30/2007\",\"XXXXXXXXXX\",\"XXXXXX, XX\",\"XX\",\"\""


I don't get where all the \ are coming from. Is there a different method I
should be using to read the file? I tried to remove them using replace, but
it didn't work.

They're coming from you looking at the string in the debugger - they're
not in the actual string.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top