PDA

You are currently viewing a search engine-friendly (archive) version of this page.

View Full Version : CArchive & carriage return


tobos
September 24, 2001, 09:16 am
I am writting to a file using the CArchive method. I want this file to be editable in text editors (notepad)..This works pretty well, but when I want to insert a '\n', to insert a carriage return, this actually shows a square symbol when opening the file with notepad. BUT opened with Word, I have a carriage return, as expected.
This happens only when using CArchive : with fwrite, I can insert '\n' without this pb showing up. Any ideas ?
Thanks.

MikeFoster
September 24, 2001, 05:59 pm
Hi tobos, welcome to HelpFromTechs!

Try writing "\r\n" instead of only '\n'.

[ September 24, 2001: Message edited by: MikeFoster ]

tobos
September 25, 2001, 06:16 am
Thanks very much Mike. Works fine.