11 lines
234 B
C++
11 lines
234 B
C++
#include <fstream>
|
|
#include <string>
|
|
|
|
inline std::string LoadTextFromFile( std::string file )
|
|
{
|
|
std::ifstream t( file );
|
|
std::string text( (std::istreambuf_iterator<char>( t )),
|
|
std::istreambuf_iterator<char>() );
|
|
return text;
|
|
}
|