Q & A by Maninder Singh

Question:

QUESTION: What are file modes (read, write, append)?

Answer:

File modes determine how a file is opened and how you can interact with it. "Read" mode allows reading the file, "write" mode allows writing (and overwriting) the file, and "append" mode allows writing at the end of an existing file without overwriting.