Escribir fichero directorio actual
Pues no consigo escribir un fichero en el directorio actual. Lo que hago es lo siguiente:
private String nombre_fich=".\agenda.dat";
FileOutputStream out = new FileOutputStream(nombre_fich);
ObjectOutputStream dos = new ObjectOutputStream(out);
agenda.addElement(nuevo);
dos.writeObject((Vector)agenda);
dos.flush();
dos.close();
out.close();
Y en lugar de guardarse en el directorio actual se guarda en c:windowssystem32
Esto lo hace un servlet con tomcat, por si sirve de algo
Gracias
private String nombre_fich=".\agenda.dat";
FileOutputStream out = new FileOutputStream(nombre_fich);
ObjectOutputStream dos = new ObjectOutputStream(out);
agenda.addElement(nuevo);
dos.writeObject((Vector)agenda);
dos.flush();
dos.close();
out.close();
Y en lugar de guardarse en el directorio actual se guarda en c:windowssystem32
Esto lo hace un servlet con tomcat, por si sirve de algo
Gracias
