Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

Often (but not always) when I open a text file using Windows Notepad, it does not recognize the line breaks.

If I open the file using Windows Wordpad, and then save it as a text file, and then open it with Notepad, the line breaks are recognized.

What causes this, and what is the easiest way to view/edit the file using Notepad?

share|improve this question

marked as duplicate by and31415, Heptite, Tog, Raystafarian, Kevin Panko Mar 25 at 16:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Notepad doesn't recognise carriage returns (CR), but only newlines (LF). –  Jerry Mar 24 at 19:27
1  
Actually Windows standard line breaks are CRLF and not just CR or LF. –  tumchaaditya Mar 24 at 19:59
    
Interesting description that explains the history behind the conventions and why it causes problems. –  fooot Mar 24 at 20:29

1 Answer 1

up vote 2 down vote accepted

This is caused by this phenomenon http://en.wikipedia.org/wiki/Newline

Notepad only understands the windows newline format, so you will have to use another program. Notepad++ is quite popular on Windows (and opensource). Notepad++ is also much better at handling large files.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.