Java - FilenotfoundException for reading text file

前端 未结 4 1341
一个人的身影
一个人的身影 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:19

    If you are building your code on your eclipse then you need to put your Highscores.scr to your project folder. Try that and check.

提交回复
热议问题