How to access files through file path in java

Assuming the file path is as follows, Insert picture description here
you can see that the file is under the src/calculator/exercises/addiontions package,
then the way to access the file is new File ("src\calculator\exercises\additions\addition_exercise.csv")
Insert picture description here

Guess you like

Origin blog.csdn.net/rj2017211811/article/details/106442381