Esempio n. 1
0
 public ScriptObject LoadFile(String fileName, Encoding encoding)
 {
     try {
         return(LoadString(fileName, Util.GetFileString(fileName, encoding)));
     } catch (System.Exception e) {
         throw new ScriptException("load file [" + fileName + "] is error : " + e.ToString());
     }
 }