Skip to content

Instantly share code, notes, and snippets.

@thiagomg
Created February 4, 2016 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagomg/63a5380c349a24a32ad7 to your computer and use it in GitHub Desktop.
Save thiagomg/63a5380c349a24a32ad7 to your computer and use it in GitHub Desktop.
Leitura de configuração em C++
std::ifstream istr;
istr.open(file_name);
while( istr.good() ) {
std::string line;
std::getline(istr, line);
std::cout << line << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment