📄 txttool.h
字号:
// TxtTool.h: interface for the CTxtTool class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TXTTOOL_H__0E2D28F0_C9FD_4C18_ADC1_BE5F68C80D2B__INCLUDED_)
#define AFX_TXTTOOL_H__0E2D28F0_C9FD_4C18_ADC1_BE5F68C80D2B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CTxtTool
{
public:
CTxtTool();
~CTxtTool();
BOOL Open(const CString &strTxtFile,
UINT nOpenFlags = CFile::modeRead | CFile::typeText);
BOOL DeleteLine( const CString &strLineSign);
BOOL DeleteLine( const CString &strStartLineSign,
const CString &strEndLineSign);
BOOL ReplaceLineContent( const CString &strSource,
const CString &strGoal);
BOOL CreateTxtFile( const CString &strTxtFile,
const CStringArray &arsContent);
BOOL FindIsContainString(const CString &strSign);
private:
CStdioFile m_File;
CString m_strTxtFile;
BOOL m_bIsOpen;
};
#endif // !defined(AFX_TXTTOOL_H__0E2D28F0_C9FD_4C18_ADC1_BE5F68C80D2B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -