hey guys, i want my program to read a config file. i have gotten it to make a config.ini and put code inside of it
Code:
So in the config to ini you type
Delay = 22
How do i make that change int Delay to 22?
Thanks for your time :)
Code:
Code
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
int Delay = 0;
int Overshoot = 0;
int Cooldown = 0;
ofstream file_;
file_.open("Config.ini");
if(file_.is_open()){
file_ << "Delay = \n";
file_ << "Overshoot = \n";
file_ << "Cooldown = \n";
}
file_.close();Delay = 22
How do i make that change int Delay to 22?
Thanks for your time :)


