I'm trying to have my ASP.NET application read in a text file, and put the characters into a string.
I realized that there are some weird symbols (a square) between the texts - I think it's either a carriage return or a newline character, and want to take them out by the Trim method.
Does anybody know how I can remove those symbols? Thanks!You can use this overload
public string Trim(params char[]);, if you know which characters you want to remove.
Most likley candidates are chr(10) (carriage return) followed by chr(13) line feed, especiallly if you are working with report files or anything unix based.
Regards
Jeff............
0 comments:
Post a Comment