In: Computer Science
PLEASE FIND THE ANSWER(S) and EXPLANATION BELOW.
Yes, we can use the following code to save a file without manually save it:
==============================
# get the pointer pointed by the file ( we get it by os.startfile() )
file = os.startfile()
# Now, write the changes and close the file.
# It will automatically save the changes.
file.write("Changes here")
file.close()
==========

