Vidyalelo
C# Programming · Q17

File Handling and Input Output in C Sharp

Programming · C# Programming · question 17

Q17

What does the File.AppendText() method do in C#?

A.
Reads the entire contents of a file into a string
B.
Appends a text file to another file
C.
Opens an existing file or creates a new file for writing and appends text at the end of the file
Answer
D.
Returns the size of a file in bytes

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board