I have a file. When I open it in Notepad I see charachters in a single line. However, if I open that file in any other application like WordPad or Notepad++. I can see irregular line breaks between charachters and they appear in multiple lines. These line breaks also appears if I do reader.Readline(). How can I perform Notepad like line read in C#?
I have a file. When I open it in Notepad I see charachters in
Share
Sorry for second answer from me, but I just realised that you could use peek to get next character and check if current and next are \r\n, like so: