Hi
I have to search for newline character in a string and remove that newline character and copy the string which is on the right side of the newline character to another string.Can any one tell me which are correct functions to use.
Well, in standart ASCII table new line is 10. So just seek for Convert.ToChar(10) char in your string. What about string functions in C#, well, they are not so good as in, for example, VB, so I prefer to use a string as an array of chars. For ex:
string s = "Test";
then: s[0] = 'T'; etc...
So just use loops, it should be very easy.
CU
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.