|
-
November 29th, 2008, 09:02 AM
#1
Writing UNIX compatible carriage returns
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|