How do I create .INI files?

In the production of my first proper program in C++ Builder, I need to know how to create a .INI file to store volume settings, etc in.  If anyone can tell me the easiest possible way I can do this, I'd appreciate it.
nfcdrummerAsked:
Who is Participating?
 
inprasConnect With a Mentor Commented:
Hi use the following function      WritePrivateProfileString("CONFIGFILENAME","CFILENAME","D:\\temp\\prasanna.ini","Prasanna.ini");
Note if the file is not found in the specified directory then it will create file in windows directory in this case prasanna.ini will be created in windows directory
then U can use other functions like WritePrivateProfileString or WritePrivateProfileInt to write the info in specified section
Hopr this helps
Regards
0
 
KangaRooCommented:
Windows provides xxxPrivateProfilexxx functions like to manipulate the contents of ini files
   GetPrivateProfileString
   GetPrivateProfileInt
   SetPrivateProfileString
   SetPrivateProfileInt
 etc... See your manual, or ask :)
0
 
KangaRooCommented:
I think I already pointed in that direction....
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
AlexVirochovskyCommented:
Or use my class for make it.
0
 
WxWCommented:
It is "WritePrivateProfileString" , not "Set" .
0
 
nfcdrummerAuthor Commented:
Thanks!!!  Sorry Kangaroo, but inpras was more thorough and he gave proper examples!!!
0
All Courses

From novice to tech pro — start learning today.