read multiple lines from a file in c++ code example
Example: how to input multiple lines of a file in c++
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
using namespace std;
int main()
{
ifstream in("file.txt");
stringstream sstr;
while(in >> sstr.rdbuf());
cout << sstr.str() << endl;
return 0;
}