public bool ReadIncludeFile(string file) { if (File.Exists(file)) { CodeChunk.DumpingValue = false; using (TextReader tr = File.OpenText(file)) { while (ProcessLine(tr.ReadLine())) ; } CodeChunk.DumpingValue = true; return true; } return false; }
// It's possible to load scripts from within the interpreter. public static void Include(string file) { interpreter.ReadIncludeFile(file); }