public static boolean guardar(ArrayList
try {
ObjectOutputStream ficheroSalida = new ObjectOutputStream(new FileOutputStream(fichero));
ficheroSalida.writeObject(lista);
ficheroSalida.flush();
ficheroSalida.close();
return true;
} catch (FileNotFoundException fnfe) {
return false;
} catch (IOException ioe) {
return false;
}
}
El otro metodo de cargar os lo pongo aquí.
No hay comentarios:
Publicar un comentario