I need to write a piece of code which will create a text file (which the user can create the name), and write it.
It definitely needs to be a text file. It is in the exam criteria.
Python needs to be able to open the file as the code that I already have saves a file which can't be opened!
filename = input(str("what is the new file going to be called?"))
file = open(filename,'w')
file.close()