Which of the mode options opens a file for both reading and writing, overwriting any existing text. If the specified file does not exist, it is created.
A) w
B) w+
C) a
D) a+
Correct Answer:
Verified
Q26: Which of the following characters can be
Q27: RUBY_PLATFORM contains a string that identifies the
Q28: Which of the following File class methods
Q29: Which of the mode options opens a
Q30: Which of the following is the Ruby
Q32: If you develop a script that will
Q33: RUBY_PLATFORM contains a string that identifies the
Q34: Which of the following File class methods
Q35: Which of the mode options opens a
Q36: When executed on UNIX or Linux, Ruby
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents