Q. Which method writes a string to a file?
β
Correct Answer: (C)
write()
Explanation: The write() method adds a string to the file.
Explanation: The write() method adds a string to the file.