cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Txt file with DOS codepage
Txt file with DOS codepage
Dec 6, 2013 at 10:05am UTC
ArnoldRich
(13)
// I'm using
CString text;
CString file_name;
text = "My text.";
file_name = "MyFile.txt";
FILE *fp;
fp = fopen(file_name, "w+");
fprintf(fp, text + "\n");
fclose(fp);
// There will be MyFile.txt in Windows codepage.
How to write to txt file with DOS codepage?
Last edited on
Dec 6, 2013 at 10:05am UTC
Dec 17, 2013 at 3:39am UTC
ArnoldRich
(13)
CharToOem
Topic archived. No new replies allowed.