Hi im i student working on a assignment and need some help. we have to do is read in arguments from command line (-i inputTxt.txt -o outputTxt.txt) and then assign the inputTxt.txt/outputTxt.txt to string values.Cant seem to get my method working.Smashing my head against the wall to get it working.any ideas would be much appreiated thnk in advance.
not producing the expected output.its nots reading the both files from the command line into the string variable in the method. what we have to do is read in strings from a input txt file then put those string into array of non dupicates then we sort it and then we write it out to the outputfile. The problem is for some reason its not assiging the files from the argv[row] to the appriate string variables that in this method(inputFile,outputFile) i alway get the error FileNames are the same) the -i and the -o are flags what ever is behind -i is the inputfile and the -o is the outputfile. just cant seem to figure it out eh.