I just got a source code file from a friend. The file was created in UNIX. When I opened it in Windows using NotePad++, each line had one extra blank line.
Puzzled, I downloaded Vim and used it to open the file. I then saw a bunch of ^M at the end of each line.
What is this ^M? How do you prevent it from being inserted?