【VC开源代码栏目提醒】:网学会员--在 VC开源代码编辑为广大网友搜集整理了:CLogFile.cpp绩等信息,祝愿广大网友取得需要的信息,参考学习。
// CLogFile.cpp: implementation of the CLogFile class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "XvidQuantsParser.h"
#include "CLogFile.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CLogFile::CLogFile()
{
}
CLogFile::~CLogFile()
{
}
//------------------------------------------------------------------------------
void CLogFile::Open(char* filepath)
{
fptr = fopen(filepath, "wt");
}
//------------------------------------------------------------------------------
void CLogFile::Print(char* msg)
{
fprintf(fptr, "%s", msg);
}
//------------------------------------------------------------------------------
void CLogFile::Close(void)
{
fclose(fptr);
}