Why can't I find my File?

前端 未结 3 1216
难免孤独
难免孤独 2021-01-28 00:01

I\'m trying to open a CSV file name \"logger.csv\" which I have saved in the source folder itself.

public static void main(String[] args) {
    String filename =         


        
3条回答
  •  故里飘歌
    2021-01-28 00:40

    To see where the file is expected update the code in your catch clause to:

            System.out.println("Error: File not found: " + motor_readings.getAbsolutePath());
    

    Put it there and be sure to refresh your workspace in Eclipse so that the file can be seen.

提交回复
热议问题