Skip to content
How to get a file path?
Profile icon

I have a text file called WaterQuality1.txt in one of my folders and I tried to create a File object in Main by writing "File file1 = new File("WaterQuality1.txt");" but it's giving me a FileNotFoundException. Am I writing the file path wrong? Or something else?


You are viewing a single comment. View All
Profile icon

That isn't working for me ;-;