I am trying to set up a program that will read a file as though from the command line with args[0]. I set up the run configuration in the "arguments" tab using my .txt file name under "program arguments" but it can't find it. I've tried importing the file from another source and adding the files to the project folder. I really have no idea what I'm doing wrong. This is the code I'm using. I'm pretty new to all this so maybe it's something obvious I just don't know. I hope my question even makes sense.
Scanner input = null;
String fn = null;
try{
fn = args[0];
input = new Scanner(new File(fn));
}