In this assignment, you will practice programming by using recursive algorithm. In addition, you need to know the fundamental file I/O, and how to use command line arguments.
Use a command line argument with designated input and output file names. Read a set of non- redundant characters that are separated by comma (,) and enclosed by parentheses ({ }) in the input file. Create a pointer of characters to save the elements given. Then print out all permutation of the given set in the output file as follows.
1. Anexampleofcommandline >p2_1 input.txt output.txt
2. An example of input (input.txt) {a,b,c}
3. Corresponding output (output.txt)
{a,b,c} {a,c,b} {b,a,c} {b,c,a} {c,b,a} {c,a,b}
4. Conditions :