// grabar archivo public void grabar() { try { PrintWriter pw = new PrintWriter("empleados.txt"); for (int i = 0; i < tam(); i++) { Empleado x = get(i); pw.println( x.getNombre() + "," + x.getApellidoPaterno() + "," + x.getApellidoMaterno() + "," + x.getDni() + "," + x.getCorreoE() + "," + x.getFechaIngreso() + "," + x.getUserName() + "," + x.getPassWord() + "," + x.getConfpassWord() + "," + x.getCargo() + "," + x.getRol()); } pw.close(); } catch (Exception ex) { } }