Q. Which method writes a string to a file? (A) append() (B) put() (C) write() (D) insert() ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (C) write() Explanation: The write() method adds a string to the file.