G
Guest
Hey, I'm trying to write a file with unix-style newlines (ASCII character 10)
from a c++ program on Windows...it seems that the most straightforward way to
do that is just to print ( char )10, but it seems that when I try to print
that to the file, the program still prints the full CR+LF Windows-style
ending. The code I have looks something like this:
param_file<<"BSEARCH_ALG SIMPLE"<<( char )10;
Is there any way to keep the program (and/or Windows?) from converting my (
char )10 into a CR+LF?
I am writing output that will be input to a program that expects
unix-formatted files.
Cheers,
Joe
from a c++ program on Windows...it seems that the most straightforward way to
do that is just to print ( char )10, but it seems that when I try to print
that to the file, the program still prints the full CR+LF Windows-style
ending. The code I have looks something like this:
param_file<<"BSEARCH_ALG SIMPLE"<<( char )10;
Is there any way to keep the program (and/or Windows?) from converting my (
char )10 into a CR+LF?
I am writing output that will be input to a program that expects
unix-formatted files.
Cheers,
Joe