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

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -