Commit 2bd86d9e by BellCodeEditor

auto save

parent 59f687ca
Showing with 16 additions and 0 deletions
file=open(r'C:\Users\Makcoo\Desktop\test.txt','w',encoding='utf-8')
file.write('r')
file.close()
file=open(r'C:\Users\Makcoo\Desktop\test.txt','a',encoding='utf-8')
file.write('vgh')
file.close()
with open(r'C:\Users\Makcoo\Desktop\test.txt','a',encoding='utf-8') as file:
file.write('t')
file=open(r'C:\Users\Makcoo\Desktop\test.txt','r',encoding='utf-8')
q=file.read()
print(q)
file.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment