File Handling
Python provides the open() function for working with files.
Common Modes
r— readw— writea— appendx— create
Best Practice
Use the with statement because it automatically closes the file.
with open("notes.txt", "r") as file:
data = file.read()
Always handle file paths and permissions carefully.