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:
문자열 absolutePath = file.getAbsolutePath();
String 파일 경로 = 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.