c_-_c_files:file_ignore
C - C++ Files - File ignore
#include <iostream> #include <fstream> using namespace std; int main() { ifstream in("test"); if(!in) { cout << "Cannot open file.\n"; return 1; } in.ignore(10, ' '); char c; while(in) { in.get(c); if(in) cout << c; } in.close(); return 0; }
c_-_c_files/file_ignore.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1