#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void test(){
ofstream ofs;
ofs.open("zy.txt",ios::out);
ofs<<"zy nb "<<endl;
ofs.close();
}
void test02(){
ifstream ifs;
ifs.open("zy.txt",ios::in);
if(!ifs.is_open()){
cout<<"wen jian da kai shi bai"<<endl;
}
string zzz;
while(getline(ifs,zzz)){
cout<<zzz<<endl;
}
ifs.close();
}
int main(){
//test();
test02();
system("pause");
return 0;
}