Click here to Skip to main content
15,896,912 members
Articles / Desktop Programming / MFC

CTextFileDocument

Rate me:
Please Sign up or sign in to vote.
4.95/5 (84 votes)
24 May 2005Ms-RL10 min read 546.8K   10.5K   196  
CTextFileDocument lets you write and read text files with different encodings (ASCII, UTF-8, Unicode 16 little/big endian are supported).
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by TextfileDemo.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_TEXTFILEDEMO_DIALOG         102
#define IDR_MAINFRAME                   128
#define IDC_EDIT_FILENAME               1000
#define IDC_BUTTON_SAVE                 1001
#define IDC_EDIT_TEXT                   1002
#define IDC_COMBO_FORMAT                1003
#define IDC_BUTTON_LOAD                 1004
#define IDC_BUTTON_TEXTTEST             1005
#define IDC_BUTTON_SELFTEST             1005
#define IDC_BUTTON_BROWSE               1006
#define IDC_EDIT_FIRSTCHAR              1007
#define IDC_EDIT_LASTCHAR               1008
#define IDC_BUTTON_FULLTEXT             1009
#define IDC_COMBO_CODEPAGE              1010
#define IDC_STATIC_SYSTEMCP             1011

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        130
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1012
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under Microsoft Reciprocal License


Written By
PEK
Sweden Sweden
PEK is one of the millions of programmers that sometimes program so hard that he forgets how to sleep (this is especially true when he has more important things to do). He thinks that there are not enough donuts in the world. He likes when his programs works as they should do, but dislikes when his programs is more clever than he is.

Comments and Discussions