Skip to content

Latest commit

 

History

History
26 lines (13 loc) · 559 Bytes

README.md

File metadata and controls

26 lines (13 loc) · 559 Bytes

IniFile

It's a very simple way to access *.ini File, the source code is written by C++/MFC

usage:

// structor/constructor

CIniFile(LPCTSTR szFileName);
virtual ~CIniFile();

// Open/Close file.

BOOL Open(BOOL isReadOnly = FALSE);

BOOL Close();

// read/write method

int GetKeyVal(CString szSectionName, CString szKeyName, int ipDefault);

CString GetKeyVal(CString szSectionName, CString szKeyName, LPCTSTR szDefault);

BOOL WriteValue(LPCTSTR szSection, LPCTSTR szItem, LPCTSTR szValue, LPCTSTR szComment = NULL);