What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-01-22 18:06:45
skip headers while reading text
#include<sstream> ... ... std::ifstream file {"test.txt"}; std::string word, line; std::istringstream iss; double var, tab[100][6]; int i=0, j; ... while(getline(file, line)) { if (!(line[0]=='#')) { iss.str(line); j = 0... Add solution