Q29
What is the purpose of the File.WriteAllText() method in C#?
A.
Appends text to the end of a file
B.
Writes the specified string to a file, overwriting the file if it already exists
AnswerC.
Reads the contents of a file into an array of bytes
D.
None of the above
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board