I’d like to remove every "\n" symbol from every single array element. But after using this code nothing happens;
string[] Words = TextBox.Text.Split(' ');
for (int i = 0; i < Words.Length; i++)
{
Words[i].Replace("\n", "");
}
What’s wrong here?
Try
Words[i] = Words[i].Replace("\n", "");