I want a java program that reads a user specified filename from the current directory (the same directory where the .class file is run).
In other words, if the user
Try
System.getProperty("user.dir")
It returns the current working directory.