This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
When i'm calling a program, for example javaTest <input.txt i'd like to get the name of the file, in this example input.txt How should i do this? I'm making a new DataInputStream(System.in), but I have no idea how I can get the name of the inputfile (because you also can't acces it in the args array of the mainmethod). Thanks in advance.