So more on, below shows the code I\'m using for this where the console asks for an input and depending on the input it writes out the contents of their respective file. And what