Read sections names from INI file. problem.
-
Does anybody know how to read count of the sections in INI file and them names? Thanks. ============== wasp.elcat.kg
-
Does anybody know how to read count of the sections in INI file and them names? Thanks. ============== wasp.elcat.kg
Try this: http://www.codeproject.com/cpp/cinifile.asp One more tip, if you have this kind of Qs, try first in this sites search engine, almost always you'll find your answers there + source code + examples. It never failed me before...;)**
--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
-
Does anybody know how to read count of the sections in INI file and them names? Thanks. ============== wasp.elcat.kg
GetPrivateProfileSection(); - Anders Money talks, but all mine ever says is "Goodbye!"
-
GetPrivateProfileSection(); - Anders Money talks, but all mine ever says is "Goodbye!"
Thanks
-
Try this: http://www.codeproject.com/cpp/cinifile.asp One more tip, if you have this kind of Qs, try first in this sites search engine, almost always you'll find your answers there + source code + examples. It never failed me before...;)**
--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
Can you read? I need numbers and names of the INI. I can't find the way to do it with your class.
-
Does anybody know how to read count of the sections in INI file and them names? Thanks. ============== wasp.elcat.kg
Man, I'm only trying to help, don't get hostile...:omg: Well, another idea, try to open the INI not using registry function (
FILE, CFile, istream*
...). Read lines, one by one and look for '[' and ']' (usestrtok
, or something). Locate them and cout. That's about it. Notify me if works(or not).**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
-
Man, I'm only trying to help, don't get hostile...:omg: Well, another idea, try to open the INI not using registry function (
FILE, CFile, istream*
...). Read lines, one by one and look for '[' and ']' (usestrtok
, or something). Locate them and cout. That's about it. Notify me if works(or not).**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
Jeez, I heard the slap all the way over here. You alright? ;P BW {insert witty/thought-provoking saying here}
-
Man, I'm only trying to help, don't get hostile...:omg: Well, another idea, try to open the INI not using registry function (
FILE, CFile, istream*
...). Read lines, one by one and look for '[' and ']' (usestrtok
, or something). Locate them and cout. That's about it. Notify me if works(or not).**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
Oh .. sorry .. I'll tryed to parse file as you said ... it works well. Thanks.
-
Oh .. sorry .. I'll tryed to parse file as you said ... it works well. Thanks.
GetPrivateProfileSection()
works better? If so, silly me... I'm always trying to invent the wheel:~ I'm so high...:rolleyes:**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
-
Jeez, I heard the slap all the way over here. You alright? ;P BW {insert witty/thought-provoking saying here}
:laugh: Are you from out of the country? :laugh:**
--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.