The file.write() method writes the contents of the given string to the file, returning the number of characters written.
file.write("Temporary Python Demo File")