java - eclipse run configurations can't find text file -
i trying set program read file though command line args[0]. set run configuration in "arguments" tab using .txt file name under "program arguments" can't find it. i've tried importing file source , adding files project folder. have no idea i'm doing wrong. code i'm using. i'm pretty new maybe it's obvious don't know. hope question makes sense.
scanner input = null; string fn = null; try{ fn = args[0]; input = new scanner(new file(fn)); }
Comments
Post a Comment