Click to See Complete Forum and Search --> : How to store a new line character in a Text File using CFile?


Zulfi Khan
May 24th, 1999, 06:05 AM
I want to store a new line character in a text file using CFile. Normally I am storing the text in CString and then using File.Write which is putting all the text in one single line.

Lane Galloway
May 24th, 1999, 01:35 PM
Try using "\r\n" instead of just '\n'.

Zulfi Khan
June 1st, 1999, 04:19 AM
Thanks its working fine.
Zulfi