I am using Visual c++ .net to create a MS Word document.
I created the .doc in word, then did an octal dump on it so I could see, character by character, what the .doc file consisted of.
Now, I am attempting to re-create the .doc by writing a C++ prg that simply opens a file, and does a series of fprintf statements to write, character by character, the exact same data that was in the MS Word created document.
I see many \n symbols in the word document, I try and write these out with:
fprintf(fout,"\n");
and when I do an octal dump on my file, I see that statement wrote 2 charcters: \r \n
how do I write out the \n without the \r
that is the ultimate question....
Thanks,
Todd
I created the .doc in word, then did an octal dump on it so I could see, character by character, what the .doc file consisted of.
Now, I am attempting to re-create the .doc by writing a C++ prg that simply opens a file, and does a series of fprintf statements to write, character by character, the exact same data that was in the MS Word created document.
I see many \n symbols in the word document, I try and write these out with:
fprintf(fout,"\n");
and when I do an octal dump on my file, I see that statement wrote 2 charcters: \r \n
how do I write out the \n without the \r
that is the ultimate question....
Thanks,
Todd