lullaby/tools/lull_script_compiler/lull_script_compiler.cc
// Reads the contents of the given file into a std::string.
Reads the contents of the given file into a std::string.
Reads the contents of the given file into a std :: string .
std::string ReadFile(const char* filename) {
  std::ifstream fin(filename);
  std::string data((std::istreambuf_iterator<char>(fin)),
                   std::istreambuf_iterator<char>());
  fin.close();
  return data;
}
std :: string ReadFile ( const char * filename ) { std :: ifstream fin ( filename ) ; std :: string data ( ( std :: istreambuf_iterator < char > ( fin ) ) , std :: istreambuf_iterator < char > ( ) ) ; fin . close ( ) ; return data ; }
Reads the contents of the given file into a std::string.
Reads the contents of the given file into a std :: string .