#include<fstream>
#include<iostream>
using namespace std;
int main()
{
char str[100];
int i=0;
ifstream rs;
rs.open("file2.txt",ios::in);
if(!rs)
{
cout<<"file2.txt文件没有打开!"<<endl;
return 0;
}
while(rs)
{
rs.get(str[i]);
i++;
}
str[i]='\0';
rs.close();
cout<<str<<endl;
cin>>i;
return 0;
}