c++ - How to use IStringStream to read from a file? -


i need read in expression file using string stream , convert expression form. having trouble figuring out how read lines file using istringstream. can me #includes , syntax this? thanks

#include <fstream>  std::ifstream file("filename.txt");  stufftype stuff; while(file >> stuff) {     // if here have read stuff. } 

Comments