File file = File("C:\\Dossier_111\\fichier.txt");フルパスが表示されます: "C:\\Dossier_111\\fichier.txt".
System.out.println("パス: " + file.getAbsolutePath());
File file = File("C:\\ファイル111\\fichier.txt");Runtime:
String absolutePath = file.getAbsolutePath();
String filePath = absolutePath.
substring(0,absolutePath.lastIndexOf(File.separator));
System.out.println("パス: " + filePath);
C:\\Folder111
Please disable your ad blocker and refresh the window to use this website.