CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Location
    Pakistan
    Posts
    207

    How to store a new line character in a Text File using CFile?

    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.



  2. #2
    Join Date
    Apr 1999
    Location
    Seattle, WA
    Posts
    74

    Re: How to store a new line character in a Text File using CFile?

    Try using "\r\n" instead of just '\n'.


  3. #3
    Join Date
    Apr 1999
    Location
    Pakistan
    Posts
    207

    Re: How to store a new line character in a Text File using CFile?

    Thanks its working fine.
    Zulfi


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured