How would I read a text file line by line in CINT?
I tried :
root [0] #include
root [1] #include
root [2] std::ifstream file(“filename.txt”)
root [3] std::string str;
root [4] { while (std::getline(file, str)){cout<<str<<endl;} }
(class ostream)1
root [5]
but as can be seen, it doesnt work…
Thanks