How to trim 0d0a from string

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I read a string from DataBase, I have there are 0d0a at the end of this
string when display it as HEX.
How can I trim 0d0a from my string?
 
| I read a string from DataBase, I have there are 0d0a at the end of this
| string when display it as HEX.
| How can I trim 0d0a from my string?
|
|

Just use:

myString.TrimEnd(char[] trimChars)

hope this helps!

Igor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top