Ciao a tutti,
ho un problema con i file. Quando avvio il programma con l'IDE tutto bene. Il file me lo crea dentro la cartella del programma, ma quando lo avvio da prompt o da jar il file me lo da un' altra parte.
codice:FileOutputStream q; ObjectOutputStream f; ..... try { q = new FileOutputStream("Utenti.dat"); } catch (FileNotFoundException ex) { } try { f = new ObjectOutputStream(q); } catch (IOException ex) { } try { f.writeObject(utenti); } catch (IOException ex) { } try { f.flush(); } catch (IOException ex) { } try { f.close(); } catch (IOException ex) { }

Rispondi quotando