 |
C++ text file line by line/each line to string/array
#include #include #include #include #include using namespace std; void put_into_vector( ifstream& ifs, vector& v ) { string s; getline( ifs, s ); istringstream iss( s ); // not the fastest method ...
www.linuxquestions.org |
 |