Python Tutorial

Python File Handling

Source: Bro Code

File Handling

PYTHON
with open("notes.txt", "w") as f:
    f.write("Hello")

with open("notes.txt") as f:
    print(f.read())