Programming - cpueblo.com

INI 읽고 쓰는 예제


글쓴이 : 유광희 날짜 : 2002-07-19 (금) 10:42 조회 : 6504
void LoadConfigure()
{
	TIniFile *ini = new TIniFile(ChangeFileExt(Application->ExeName, ".ini"));

	DBConnection	= ini->ReadString(	"DB",		"ConnectionString",	"");
	ServerPort	= ini->ReadInteger(	"Server",	"Port",			1600);

	ServiceStartDate= ini->ReadDate(        "Service",      "StartDate",		Now());
	COUNT_MAX	= ini->ReadInteger(     "Service",	"MaxCount",		10);

	delete ini;
}