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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -