import java.io.* ;// for the IOException
class Run {
public static void main (String[] args) throws IOException {
String fname;
if (args.length == 0) {
System.out.print(“Enter a file name: “);
fname = SimIO.readLine();
} else {
fname = args[0];
}
Sim.load(fname) ;
Sim.run() ;
}
}