Skip to content

Instantly share code, notes, and snippets.

@quedlin
Created March 22, 2018 22:58
Show Gist options
  • Save quedlin/9b8cc1e435f91606f61f261d4e78249f to your computer and use it in GitHub Desktop.
Save quedlin/9b8cc1e435f91606f61f261d4e78249f to your computer and use it in GitHub Desktop.
#include <fstream>
#include <string>
int main()
{
std::ifstream file("Read.txt");
std::string str;
while (std::getline(file, str))
{
// Process str
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment