I have this code: char[] text="am"; CString head; head.Format("I %s etc",text); The CString variable head is defined like unicode. all my CString variables are defined like unicode. How can I write this variable head into a file? (text file or utf-8 or...) I am doing something like that: f=fopen("result.txt","a"); fprintf(f,"%s",head); fclose(f); I need this in a Visual C++ program. Thank you! ...