I have a scanner that\'s trying to read a file named info.data in the src folder.I get Exception in thread \"main\" java.io.FileNotFoundException: info.data (The system cann
If the input file is always part of your application (i.e. you also put this into the .jar file later) you should use getResourceAsStream() in order to read its contents.
InputStream in = getClass().getResourceAsStream(filename);
Scanner scanner = new Scanner(in);