// show file content - sbumpc() example #include <iostream> // std::cout, std::streambuf #include <fstream> // std::ifstream #include <cstdio> // EOF using namespace std; bool readWord(std::istream& in, std::string& word) { int c; std::streambuf& sb = *in.rdbuf(); word.clear(); cout << "---------------1"; while ((c = sb.sbumpc()) != EOF) { if (c == ' ' || c == ' ' || c == ' ' || c == ' ' || c == 'v' || c == 'f' || c == '