Read files. Ini

know how you can read the files. Ini, and I tried to do with the Apis:

GetPrivateProfileString
WritePrivateProfileString

But I have problems using these APIs in the lite-c, I get a lot of mistakes, if algien knows how to read. Ini or could help, I would appreciate.