#include #include using namespace std; int main() { char sring1[20], string2[20], string3[20]; ifstream invoerstroom("hallo.txt"); if(!invoerstroom.is_open()) { cerr << "Fout: Bestand niet kunnen oppenen." << endl; exit(1); } invoerstroom >> string1; invoerstroom >> string2; invoerstroom >> string3; cout << string1 << " " << string2 << " " << string3 << endl; invoerstroom.close(); return 0; }