Jawa ke rumah direktori java
String home = System.getProperty("user.home");
File file = new File(home+"/Downloads/" + fileName + ".txt");
Chiara
String home = System.getProperty("user.home");
File file = new File(home+"/Downloads/" + fileName + ".txt");