text: #include "Scripting.h"
  
  #include <fstream>
  
  using namespace std;
  using namespace nspace;
  
  bool VirtualScriptMachine::loadStream(std::istream & stream){
    logError("Not implemented");
    return false;
  }
  bool VirtualScriptMachine::loadString(const std::string & script){
    stringstream stream (script);
    return loadStream(stream);
  }
  bool VirtualScriptMachine::loadFile(const std::string & filename){
    ifstream stream(filename,fstream::in );
  
    if(!stream.good()){
      logError("could not load file " << filename);
      return false;
    }
    auto result = loadStream(stream);
    stream.close();
    return result;
  }