diff --git a/README.md b/README.md index 8921482..40e84a7 100644 --- a/README.md +++ b/README.md @@ -261,7 +261,7 @@ os.listdir("/") print( open("/boot.py").read() ) # Write to a file. Deletes existing content. -f = open("data.txt", "a") +f = open("data.txt", "w") f.write("Hello ") f.close()