When i am executing the code below by the command
javac ShowFile.java
java ShowFile
the output is Usage ShowFile File
java ShowFile TEST.TXT
output : FileNotFound
i don't understand the logic of this program, shall i create a file before executing a program or what ??
if yes then where shall i place the file, in the bin folder where jdk is installed ??
please help ??
javac ShowFile.java
java ShowFile
the output is Usage ShowFile File
java ShowFile TEST.TXT
output : FileNotFound
i don't understand the logic of this program, shall i create a file before executing a program or what ??
if yes then where shall i place the file, in the bin folder where jdk is installed ??
please help ??