System.out.println("Error: File not saved: Could write file.");
System.err.println("Error: File not saved: Could write file.");
    public boolean saveRom(File rompath)    {        if (!this.isLoaded) //don't try to save if nothing is loaded        { return false; }        this.path = rompath;        setDefaultDir(rompath.getParent());        try        {            FileOutputStream out = new FileOutputStream(rompath);            byte[] b = new byte[this.rom.length];            for (int i = 0; i < this.rom.length; i++)            {                b[i] = (byte) this.rom[i];            }            out.write(b);            out.close();        }        catch (FileNotFoundException e)        {            System.out.println("Error: File not saved: File not found.");            e.printStackTrace();            return false;        }        catch (IOException e)        {            System.out.println("Error: File not saved: Could write file.");            e.printStackTrace();            return false;        }        System.out.println("Saved ROM: " + this.path.length() + " bytes");        return true;    }