Guest_imported
New member
- Jan 1, 1970
- 0
How can I save to a file, say myfile.ini, some CheckBox settings from my application so when I re-open my application these CheckBox settings are restored.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<iostream.h>
ofstream MyFile; // stream set up
MyFile.open("MyFile.ini", ios::out);
if (!MyFile)
{
Application->MessageBox("Cannot open INI file.", "File Error", MB_OK);
return;
}
if (RadioButton1->Checked == true)
MyFile << "RadioButton1 = true" << endl;
else
MyFile << "RadioButton1 = false" << endl;
RadionButton1->Checked = true