Java - FilenotfoundException for reading text file

前端 未结 4 1308
一个人的身影
一个人的身影 2021-01-28 07:08

by running this...

File file = new File(\"Highscores.scr\");

i keep getting this error, and i really don\'t know how to get around it. the fil

4条回答
  •  花落未央
    2021-01-28 07:13

    As far as I remember the default directory with be the same as your project folder level. Put the file one level higher.

    -Project/
     ----src/
     ----test/
    -Highscores.scr
    

提交回复
热议问题