Python/basics.py

7 lines
137 B
Python
Raw Permalink Normal View History

2020-02-13 17:02:31 +00:00
with open("files/fruits.txt", "a+") as myfile:
myfile.write("\nOkra")
myfile.seek(0)
content = myfile.read()
print(content)