Python - File Handling Fundamentals
Identify the error in the following code snippet:
file = open('notes.txt', 'r')
content = file.read()
print(content)
file.write('More notes')
file.close()