Thanks for the replys. I have tried "\n", environment.newline etc but none of them seem to work. The reason for this I believe is because C# doesn't recognise the character as a newline, but simply a character in the shape of a square. When I copy and paste the symbol into a .net environment it just pastes a newline (ie, like it would I key return). The symbol will have a character code, but I can't seem to find out what it is. I believe if I have that I can remove these characters. Any other ideas or knowledge about the character code would be much appreciated. Regards James
J
James19841984
@James19841984
Posts
-
How to remove a character from a string - help required -
How to remove a character from a string - help requiredHi, I have a C# project which imports a .csv file, however some of the characters in the file are square characters. These characters mean that when I write the output to a text file I get a newline where the square characters were. My question is how can I remove these square characters? If I wanted to remove say the character value "s" I could write: String holder = "susan"; char[] myChar = {'s'}; String newString = holder.Trim(myChar); Output = "uan" The problem is I don't know how to remove the square character because it is not a conventional ASCII character. Any help is much appreciated. Thanks James