29 lines
465 B
C++
29 lines
465 B
C++
#include "StdAfx.h"
|
|
#include ".\baseparser.h"
|
|
#include <io.h>
|
|
|
|
BaseParser::BaseParser(void)
|
|
{
|
|
}
|
|
|
|
BaseParser::~BaseParser(void)
|
|
{
|
|
}
|
|
|
|
|
|
//파일이 있는지 체크..와 파일이름 세팅.
|
|
BOOL BaseParser::Init( const TCHAR* pszFileName )
|
|
{
|
|
if( !pszFileName ) return FALSE;
|
|
|
|
m_szFileName[0] = '0';
|
|
|
|
if( _access( pszFileName, 0 ) != -1 ) //파일이 존재하면.
|
|
{
|
|
strncpy( m_szFileName, pszFileName, MAX_PATH );
|
|
m_szFileName[MAX_PATH-1] = '0';
|
|
return TRUE;
|
|
}
|
|
|
|
return FALSE;
|
|
} |