#include #include #include int main() { string str; ifstream open ( "example.txt" ); while(!open.eof()) { open >> str; cout << str << " "; } }