public void LoadFile(string filename)
{
filename = this.GetFilename(filename);
string originalpath = currentPath;
string filepath = (new FileInfo(filename)).DirectoryName;
try
{
currentPath = filepath;
Loader loader = new Loader(filename, new SimpleCompiler());
loader.LoadAndExecute(this);
}
finally
{
currentPath = originalpath;
}
}