Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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?
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...