3
我正在嘗試掃描文本文件。是的,我知道......這很簡單。我一直試圖找到我的文本文件,並沒有什麼作品的路徑,它給了我一個NoSuchFileException找不到文件位置
for (String line : Files.readAllLines(Paths.get("/com/panda/anagramsolver/handling/word_list.txt"))) {
System.out.println(line);
}
我試圖掃描位於com.panda.anagramsolver.handling.word_list文件.txt。我知道這個問題會得到很多downvotes,我無法詳細說明我的問題,足以在谷歌上找到它。提前,謝謝。