myTerminal now handles empty files without error