#include #include #include using namespace std; //myfstream_readtext1.cpp int main() { ifstream readtext("data2.txt"); char str1[200]; while(!readtext.eof()) { readtext.getline(str1, 200); cout<< str1 << endl ; } return 0; }