Hi,
i have used Scanner to read a textfile and input data into a table
when i run the jar file through Netbeans it works fine, but when i manually go and run this from the My Documents (Where my jar file is generated), it throws an error, i think may be we are suppose to give path, if so how can i assign? and also i wont be knowing the path, it keeps changing, please help me outCode:Scanner scan = new Scanner(new File("textfile.txt"));
Regards
Sandeep

