I want to generate on Windows a file (script) for UNIX. So I need to output just LF
characters, without outputting CR
characters.
When I do fprintf(fpout, "some text\n");
, character \n
is automatically replaced by \r\n
in the file.
Is there a way to output specifically just \n
(LF
) character?
The language is C++, but the I/O functions come from C.