Ścieżka do katalogu domowego 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");