stdiofileex.h
来自「数据库部署程序」· C头文件 代码 · 共 30 行
H
30 行
//C++中能够读些Unicode格式的文本文件
#pragma once
class CStdioFileEx: public CStdioFile
{
public:
CStdioFileEx();
CStdioFileEx( LPCTSTR lpszFileName, UINT nOpenFlags );
virtual BOOL Open( LPCTSTR lpszFileName, UINT nOpenFlags, CFileException* pError = NULL );
virtual BOOL ReadString(CString& rString);
BOOL ReadWideString(CStringW& rString);
BOOL ReadAnsiString(CStringA& rString);
virtual void WriteString(LPCTSTR lpsz);
void WriteWideString(LPCWSTR lpsz);
void WriteAnsiString(LPCSTR lpsz);
bool IsUnicodeFormat() {return m_bIsUnicodeText;}
unsigned long GetCharCount();
// Additional flag to allow Unicode text format writing
enum {modeWriteUnicode = 0x100000};
static bool IsFileUnicode(const CString& sFilePath);
protected:
UINT PreprocessFlags(const CString& sFilePath, UINT& nOpenFlags);
bool m_bIsUnicodeText;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?