So I have the following code that takes the users input as a String which is the name of a file and inputs it into a Scanner object.
System.out.print("What is the name of the input file?");
String name = scan.nextLine();
Scanner file = new Scanner(new File(name));
What is the proper location to place a file so that it can be accessed. Would I have to keep the file in the same folder as this project or is it possible to have them in different folders and still be able to reference it. I am using a mac if that helps.