G
Guest
How do I remove new line in constant if I have a string like this
string st1 ="\abc\def";
I use string trim but it doesn't work.
string st2;
for (int i = 0; i<st1.Lenght; i++)
{
st2 = st1.trim("\n".ToCharArray());
}
any idea?
thanks
string st1 ="\abc\def";
I use string trim but it doesn't work.
string st2;
for (int i = 0; i<st1.Lenght; i++)
{
st2 = st1.trim("\n".ToCharArray());
}
any idea?
thanks