Wayne,
I would use the replace method, and just realise that '\n' is a char just like 'a' and 'b'. Also, the replace method can replace chars with chars, and ALSO strings with strings. If you are looking for carraige returns in something like a large text box, I'd do something like the following:
inputString = inputString.Replace("\r\n"
This simply replaces carraige returns with a null terminator. This is nice, because you can then output your new inputString to the console and it will still look correct.
-Eric
Main Topics
Browse All Topics





by: WinterMuteUKPosted on 2005-01-05 at 02:06:36ID: 12960596
Within the code itself? Using Visual Studio?
Cheers
Wint.