I have this assignment due for a beginner Computer Science class. I understand the concept of making a .txt file and I also understand how to create an array and sorting by descending or ascending. However, I do not understand the concept of inputting the numbers in the input.txt file, writing a or d to specify the order, and having an output.txt file come up and rearrange the order of the array. Can someone please clear this up for me?
Also, sorry for my bad English. It is not my main language.