Each line in the file back wrote into CR (carriage return), and the following li

In the Linux write a program to read, will all the lines from a file into a char** structure, and then to the "\n" as the dividing line to distinguish. Then each row wrote another document.
The above Linux is no problem. But when running on the windows problem. Each line has a blank line.
And displayed in the NotePad++ "all the symbols", discovered finally each new file which is an CR character, and the next line is the CRLF.
Open the file using fopen, when writing the file is used in rewind and fputs. Please Zhidianmijin. How to remove the blank line below each row in Windows.

Started by Jacqueline at November 14, 2016 - 1:01 AM

Feel shy, the title is wrong. It should be "the following line into CR LF (carriage return)."

Posted by Jacqueline at November 15, 2016 - 1:07 AM