Hi all
I am writing a simple Windows MFC program which generates an input file for a program which we have installed under Linux. At the moment, when I try to run the program under Linux on this input file, I need to first use the "dos2unix" utility to convert all dos carriage returns to linux/unix since otherwise the Linux Program fails to run. The code I use in the Windows MFC program to write the input files for the Linux program is something like:

outf << " PCH 2 2 2\r\n";

What should I be using instead of "\r\n" to write a Linux/Unix compatible carriage return.

Thanks for reading,

Robbie