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?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.