코드/c/c++
[WIN32] INI 파일 관련 함수들
WeZZ
2008. 10. 29. 00:51
- 읽기< 사용자 정의.ini >-
GetPrivateProfileInt
GetPrivateProfileSection
GetPrivateProfileSectionNames
GetPrivateProfileString
GetPrivateProfileStruct
- 읽기< Win.ini >-
GetProfileInt
GetProfileSection
GetProfileString
- 쓰기 <사용자 정의.ini> -
WritePrivateProfileSection
WritePrivateProfileString
WritePrivateProfileStruct
- 쓰기 <Win.ini >-
WriteProfileSection
WriteProfileString
간단한 예제
ini 파일 내부
[섹션] Name = "홍길동" . |
char szNameBuff[MAX_PATH] = {0,}
GetPrivateProfileString( "섹션" , "Name" , NULL , szNameBuff, MAX_PATH , "ini파일 풀경로");