I'm pretty new to using Java and programming in general, and I can't for the life of me figure out how to find the text file below. I saved it in the files folder within the project and it still doesn't work. People have suggested using absolute paths and I tried that to no avail, and I don't know if I'm just screwing up the path or if I have to do something else. All of the absolute path examples I've found on here are using Windows, and the root folder looks like "C:/../whatever.txt". Is there something different one has to do on a Mac?
I've gone to the Relative/Absolute paths thread already, and in spite of following the directions on there is still an error.
This is my code...and the error happens on the Scanner line when it doesn't find the txt file. Help?
import java.util.Scanner;
import java.io.File;
public class Paper {
public static void main(String[] args) {
File place = new File("wrappingPaper.txt");
Scanner scan = new Scanner(place);
System.out.println("found it");
}
}