if (f == null) return;
    public static void exportAll(File f)    {        try        {            FileWriter out = new FileWriter(f);            for (int i = 0; i < tilesets.length; i++)            {                tilesets[i].init();                out.write(tilesets[i].getAllDataAsString());                if (i != tilesets.length - 1)                    out.write("\n\n\n\n");            }            out.close();        }        catch (IOException e)        {            System.err.println("Error writing file to export tilesets to.");        }    }