#include #include int main() { std::ifstream in_file("nmr.in", std::ifstream::in); char filename[50], outputfile[50]; float baseline, tol; int filtertype, filtersize, filterpass, technique; in_file >> filename; // The next line tells ifstream to ignore everything in the ifstream for // the next 100 characters or until it finds the end of line marker. in_file.ignore (100, '\n'); in_file >> baseline; in_file.ignore (100, '\n'); in_file >> tol; in_file.ignore (100, '\n'); in_file >> filtertype; in_file.ignore (100, '\n'); in_file >> filtersize; in_file.ignore (100, '\n'); in_file >> filterpass; in_file.ignore (100, '\n'); in_file >> technique; in_file.ignore (100, '\n'); in_file >> outputfile; }