streamreader and quotes

thehack

New member
Joined
Aug 23, 2003
Messages
2
I have found that streamreader seems to ignore the quote character (single or double) when reading in a text file. I use stream reader to populate textboxes and have not found a way to include quotes. Any thoughts?
 
I used this code

Public fStreamReader As StreamReader
Try
fStreamReader = File.OpenText(strHelpFileName)
Try
lblHelp.Text = fStreamReader.ReadToEnd
Catch ex As Exception
lblHelp.Text = ex.ToString
End Try
Catch ex As Exception
lblHelp.Text = ex.ToString
End Try

Works great if the target file does not contain a " or otherwise just seems to ignore them.
 
Ignore them? It reads them in just fine, were you expecting it to do something else?
 
Back
Top