Is there a command that I could rename (or create) a txt file
having the name of the user's input?
For example...
If the user inputs "FILENAME", I want the program to be able to
either create a file named "FILENAME.txt"
or to
rename a pre-existing file to "FILENAME.txt"