What does the 'w' file mode in Ruby signify?
A. Opens a file for writing, truncating it if it exists
B. Opens a file for reading and writing, creating it if it does not exist
C. Opens a file for reading, creating it if it does not exist
D. Opens a file for appending, creating it if it does not exist
Answer: Option A
Join The Discussion