carriage return in a text file

J

Jason

hi, all,
after I read a string from a text file, which contains a hidden character
(carriage return) some where in the string, how can I remove this hidden
character, because when I populated it to another text file, this carriage
return character caused some problem.
thanks.
J
 
H

Herfried K. Wagner [MVP]

Jason said:
after I read a string from a text file, which contains a hidden character
(carriage return) some where in the string, how can I remove this hidden
character

Take a look at 'System.String.Replace',
'Microsoft.VisualBasic.Strings.Replace' and 'ControlChars.Cr'.
 

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

Top