Hello !
How to read category and respective variable parameters in user defined .ini file?
file format
[Category1]
val1 10
val2 20
val3 str_id
[Category2]
val1 11
val2 15
cal3 name
plz help
with best regards,
sudsi
Hello !
How to read category and respective variable parameters in user defined .ini file?
file format
[Category1]
val1 10
val2 20
val3 str_id
[Category2]
val1 11
val2 15
cal3 name
plz help
with best regards,
sudsi
Ini files are just text files, so the first thing you need to be reading about is
- fopen
- fgets
- fclose
Then you can add things like
- find Category
- find symbol
- find symbol in category
Or whatever else you want to do
For a properly formatted ini file on windows, you can also use the GetPrivateProfileString() and GetPrivateProfileInt() functions.
GetPrivateProfileString() and GetPrivateProfileInt()
which header are they in - is it windows.h ?
Monday - what a way to spend a seventh of your life
I bet Google would tell you if you asked nice enough.
Quzah.
Hope is the first step on the road to disappointment.
google's not talking to me. I bugged it with so many questions yesterday
Monday - what a way to spend a seventh of your life
try the msdn.microsoft.com then
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
GetPrivateProfileInt
GetPrivateProfileString
Don't understand why Google didn't work ... that took me more time to post than to find!
don't blame google for your mistakes
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.