I viewed some .txt on Notepad++ and Notepad. I do notice that Notepad++ reveals extra line. Does the extra line exist or not?
(I double checked, it's the same file, same version)
I viewed some .txt on Notepad++ and Notepad. I do notice that Notepad++ reveals extra line. Does the extra line exist or not?
(I double checked, it's the same file, same version)
On Notepad++ click on View -> Show Symbol -> Show All Characters too view line feed and other characters.
For this .NET provides something like Environment.Newline which gives the appropriate newline character (or characters) supported in that particular environment.
This actually depends upon the editors capability of representing or displaying the characters. In some editors or platforms, '\n ' is considered to be newline while in some, '\n\r ' is considered to be the newline.
You would like to read this as well this.