How to write some text into a txt file with MS-DOS encoding ? I'm using class FILE. May be I must use another class?
CString text;
CString file_name;
text = "My text must be in txt file in MS-DOS encoding.";
file_name = "MyFile.txt";
FILE *fp;
fp = fopen(file_name, "w+");
fprintf(fp, text + "\n");
fclose(fp);