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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

StreamReader

Status
Not open for further replies.

ecannizzo

Programmer
Joined
Sep 19, 2000
Messages
213
Location
US
I am using the streamreader to read lines in a file. The problem is the file has double quotes surrounding things and when the StreamReader opens it, it escapes all those double quotes with \.

My question is how can I get it to not do that, or how can I open the file and delete all the double quotes in the file before it escapes them?

Thanks!
 
I didn't anderstand your question well.
Do you mean you have a line like this in the file:
"word"
and when you read it, you see in the watch window the string:
\"word\"
I tried that and I didn't see the \.
 
That's exactly whats happening.
 
Which encoding do you use?
Try to write the string back to a file, and see if the \ remains in the file, if not, the \ is only for display I think.
 
It prints it out. I don't specify an encoding.
 
can you show the rellevant code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top