Introduction
File modes tell the computer how you want to open a file, like reading, writing, or adding new data.
When you want to read data from a file, like loading a saved game.
When you want to write new data to a file, like saving a document.
When you want to add information to the end of an existing file, like adding a new message to a log.
When you want to create a new file or overwrite an old one.
When you want to read and write to the same file without closing it.