End of line
-
HI, I can't find out the end of line in C#. It's like chr(13) in VB. Anybody helps me? My project is: I want to display a text file in RichTextBox. Then, I want to capture all the text to fill in a text box. And I want to replace the end of like by ";". Thank a lots Don't smile at me if silly question, 'cos I'm a beginner to C#
-
HI, I can't find out the end of line in C#. It's like chr(13) in VB. Anybody helps me? My project is: I want to display a text file in RichTextBox. Then, I want to capture all the text to fill in a text box. And I want to replace the end of like by ";". Thank a lots Don't smile at me if silly question, 'cos I'm a beginner to C#
Are you looking for the "\n" or System.Environment.NewLine ? :zzz:----------------------------------------------------------------------:(( T Manjaly
C# Tutorials and samples : http://www.dotnetspider.com -
Are you looking for the "\n" or System.Environment.NewLine ? :zzz:----------------------------------------------------------------------:(( T Manjaly
C# Tutorials and samples : http://www.dotnetspider.comThank you!That's right. txtString=txtString.Replace("\n",";");