I want to read a .txt
file from a java project on click of an executable file in linux based command prompt in a manner as shown below
./xyz inputs.txt
where xyz is the executable file and inputs is the input file. The executable file will launch the main class which is to read the inputs.txt
file and proceed. Please Note: It is compulsory to use the command as shown above
So what is your problem? You trying to read it from the terminal or from some IDE?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.