PYTHON BEGINNERS - 27 : WRITING FILES
IN THIS TUTORIAL, WE WILL LERAN TO WRTIE FILES WITH PYTHON:
employee_file = open("employee_file.txt", "w") #--> read mode, "w" - write mode(editing) , "a" - append mode(adding data at the end of file) , "r+" - read+write mode
employee_file.write("\nKelly - Customer Service")
employee_file.close()
# employee_file = open("employees1_file.txt", "w") #--> read mode, "w" - write mode(editing) , "a" - append mode(adding data at the end of file) , "r+" - read+write mode
# employee_file.write("\nKelly - Customer Service")
# employee_file.close()
Comments
Post a Comment