hi, I am trying to read data from a text file named "myFile.txt". Although the text file is in the same directory with the class JVM throws the FileNotFoundException. I've added the code here. Is there a flow in the coding? Thanks in advance.
It is better to make mistakes now and on purpose than later and accidentally...
By default the classes in the java.io package always resolve relative pathnames against the current user directory. This directory is named by the system property user.dir, and is typically the directory in which the Java virtual machine was invoked.