end-of-line code on linux and windows

In Unix and all Unix-like systems, \n is the code for end-of-line, \r means nothing special. However in Windows (and many old OSs), the code for end of line is 2 characters, \r\n

For the file created on any Unix system, the end-of-line code is not work opening via notepad on Windows. Replace the code \n to \r\n on notepad++ to solve this problem.

Leave a Reply

Your email address will not be published. Required fields are marked *