Ho scritto questo codice:
codice:try { File file = new File(pathFile); if(!file.exists()){ file.createNewFile(); System.out.println("Il file " + pathFile + " è stato creato"); } System.out.println("Il file " + pathFile + " non può essere creato"); }catch(IOException e) { e.printStackTrace(); }
L'errore che ottengo è il seguente:
java.io.IOException: Accesso negato
Sembra che ci sono errori di permessi di scrittura su c:\ in Win 10.