This commit is contained in:
Lynn Ochs 2019-11-26 00:34:19 +01:00
parent b1a6f38203
commit bf6d87606a

View File

@ -261,7 +261,7 @@ os.listdir("/")
print( open("/boot.py").read() ) print( open("/boot.py").read() )
# Write to a file. Deletes existing content. # Write to a file. Deletes existing content.
f = open("data.txt", "a") f = open("data.txt", "w")
f.write("Hello ") f.write("Hello ")
f.close() f.close()