?? exportfile.cpp
字號(hào):
#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;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -