#include <string>  
#include <fstream>  
#include <sstream> 
#include <iostream>
using namespace std; 
string getcont(string name){
ifstream t(name.c_str());  
stringstream buffer;  
buffer << t.rdbuf();  
string contents(buffer.str()); 
return contents;
}
int main(){
	string text,name="test2.cpp";
	text=getcont(name);
	cout<<text;
	return 0;
}
