Untitled
public cpp v1 · immutable#include <fstream>#include <iostream>#include <string>int main(){ string str; ifstream open ( "example.txt" ); while(!open.eof()) { open >> str; cout << str << " "; } }#include <fstream>#include <iostream>#include <string>int main(){ string str; ifstream open ( "example.txt" ); while(!open.eof()) { open >> str; cout << str << " "; } }