Click here to Skip to main content
15,889,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In a section [aaaa] of the file xxx.ini i have the path that points to the file yyy.ini.
How do i read this path and use it?
Posted
Updated 4-Jun-13 3:40am
v2
Comments
Ron Beyer 4-Jun-13 9:30am    
You have a lot of languages and platforms tagged, can you narrow it down and tell us what you are really programming in?
PIEBALDconsult 4-Jun-13 9:44am    
How would you like to read it?
Ioan-Alexandru 4-Jun-13 9:47am    
i would like to read the path in a variable so that i could used this to open the other file and read from it some informations, informations that i will put in a StringList.

You may use GetPrivateProfileString[^] for reading the path of the other INI file. Then use the obtained string as lpFileName parameter in successive GetPrivateProfileString calls.
 
Share this answer
 
See the GetPrivateProfileString function[^], and its family.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900