--Vamsi Effective Blogs "Make everything as simple as possible but not simpler"--
Aug 5, 2011
Replace Line Breaks in a String C#
Use replace with environment.newline
myString = myString.Replace(Environment.NewLine, "replacement text")
string line = ...
line = line.Replace( "\r", "").Replace( "\n", "" );
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment