StreamReader
-
I am reading in a stream from a file and the text being read in is like this. "\"ABBE0001\",\"ABBEY\",\"CHRISTOPHER\",\"\",\"\",\"MR\",\"\",\"453 772 576\",\"\",\"\",\"M\",\"24/11/1960\"" I want to remove all backslashes and quotes but when I use the replace it does not work. How can I remove the backslashes and quotes. Thanks. Stephen
-
I am reading in a stream from a file and the text being read in is like this. "\"ABBE0001\",\"ABBEY\",\"CHRISTOPHER\",\"\",\"\",\"MR\",\"\",\"453 772 576\",\"\",\"\",\"M\",\"24/11/1960\"" I want to remove all backslashes and quotes but when I use the replace it does not work. How can I remove the backslashes and quotes. Thanks. Stephen
Did you put an @ in front of the string, and escape the quote, or did you escape the quote AND the slash ? "\\\"" or @"\""" is what you need 'It does not work' is kind of hard to fathom. The replace method works, but to know what you're doing wrong, we need more info on what you expect, and what you're getting. Christian Graus - Microsoft MVP - C++
-
I am reading in a stream from a file and the text being read in is like this. "\"ABBE0001\",\"ABBEY\",\"CHRISTOPHER\",\"\",\"\",\"MR\",\"\",\"453 772 576\",\"\",\"\",\"M\",\"24/11/1960\"" I want to remove all backslashes and quotes but when I use the replace it does not work. How can I remove the backslashes and quotes. Thanks. Stephen