public EventMain(string pathtofile) { string[] file = System.IO.File.ReadAllLines(pathtofile); foreach (string s in file) { ScriptCommand temp = new ScriptCommand(s); this.commands.Add(temp); } }
public EventMain(string pathtofile) { string[] file = System.IO.File.ReadAllLines(pathtofile); foreach (string s in file) { ScriptCommand temp = new ScriptCommand(s); this.commands.Add(temp); } }