void readFile() { ifstream file; file.open ("program.txt"); if (!file.is_open()) return; string word; while (file >> word) { cout<< word << ' '; } }