Im working on an assignment for my school and for example i need to be able to excute my program from DOS adding switches in for example.
java Main -e password input.txt output.text
java Main -d password input.txt output.text
so depending on the switches the program will run differntly
The program i am creating(Main.java) will encrypt(-e) or decrpt(-d) a text file based on the password(password). it will have an input text file (input.txt) with infomation in clear text and an output text file which will have the infomation encrypted (output.text).
Im very rusty with my java programming and i have a lot to learn and catch up but i dont know how i can achive this can you please help me.
I am using netbeans to create my program with