#include <Windows.h>
#include <iostream>
using namespace std;
int main()
{
char szbuffer[90];
GetPrivateProfileStringA("Question", "Q", "no", szbuffer, 90, "God.ini");
cout<<"The text I have found is: "<<szbuffer<<"\n";
system("PAUSE");
}
[Question] Q = Thank God.
char szPath[MAX_PATH];
GetCurrentDirectoryA(MAX_PATH, szPath);
char buffer[90];
GetPrivateProfileStringA("Question", "Q", "No", buffer, 90, strcat(szPath, "\\God.ini"));