#include#include using namespace std; int main() { fstream file("text.txt",ios::in); if(!file.fail()) { while(!file.eof()) { char buf[128]; file.getline(buf,128); if(file.tellg()>0) cout<

#include#include using namespace std; int main() { fstream file("text.txt",ios::in); if(!file.fail()) { while(!file.eof()) { char buf[128]; file.getline(buf,128); if(file.tellg()>0) cout<