Skip to content

Instantly share code, notes, and snippets.

@tonitch
Created December 14, 2021 11:05
Show Gist options
  • Save tonitch/5dd70dc1ffef3fe257450d1de57be418 to your computer and use it in GitHub Desktop.
Save tonitch/5dd70dc1ffef3fe257450d1de57be418 to your computer and use it in GitHub Desktop.
void Config::loadConfig(){
std::string key, value;
while(config_file){
getline(config_file, key,':');
config_file >> value;
config_file >> std::ws;
std::cout << "key: " << key << "; Value: " << value << std::endl;
}
config_file.close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment