✏️ Explanatory Question

What does the characters "r" and "w" mean when writing programs that will make use of files?

👁 2,571 Views
📘 Detailed Answer
💡

Answer with Explanation

"r" means "read" and will open a file as input wherein data is to be retrieved. "w" means "write", and will open a file for output. Previous data that was stored on that file will be erased.