Home / Questions / What does the characters "r" and "w" mean when writing programs that will make use of files?
Explanatory Question

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

👁 2,571 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

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.