Previous section To contents

2.2.3 main() revisited

main() remains almost unchanged, except for the addition of two case statements with which we now can call the load and save functions. Note that you must provide a filename to load and save, respectively, otherwise they will return an error which will crash the program.
case "save":
    save(args);
    break;

case "load":
    load(args);
    break;


Previous section To contents