title: writing to a file mfc
body: <p>How to write unicode to a file using MFC. I tried writing to a file using Cfile class but not sure on how to specify length of TCHAR also having trouble printing out new lines. A code snippet is welcome.</p>