📄 exportfile.cpp
字号:
#include "StdAfx.h"
#include "ExportFile.h"
CExportFile::CExportFile(void) :
m_pFile( NULL )
{
}
CExportFile::~CExportFile(void)
{
CloseFile();
}
BOOL CExportFile::OpenCreateFile( const char* strFileName )
{
if( m_pFile != NULL )
{
CloseFile();
}
m_pFile = fopen( strFileName, "a" );
if( m_pFile == NULL )
{
DWORD dwError = GetLastError();
return FALSE;
}
return TRUE;
}
BOOL CExportFile::CloseFile()
{
if( m_pFile )
{
fclose( m_pFile );
}
return TRUE;
}
BOOL CExportFile::AddItem( const char* strItem )
{
fprintf( m_pFile, strItem );
fprintf( m_pFile, "," );
fflush( m_pFile );
return TRUE;
}
BOOL CExportFile::EnterLine()
{
fprintf( m_pFile, "\n" );
fflush( m_pFile );
return TRUE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -