#include<fstream>#include<iostream> using namespace std; int main(){fstream fin;fin.open("main.cpp",ios::in);if(!fin){cout<<"can not open file !"<<endl;return -1;}char ch;while(fin.get(ch))cout<<ch;fin.close();return true;}