Vidyalelo
C# Programming · Q8

File Handling and Input Output in C Sharp

Programming · C# Programming · question 8

Q8

What is the purpose of the File.ReadAllLines() method in C#?

A.
To read all lines of text from a file into a string array
Answer
B.
To write all lines of text to a file
C.
To delete all lines of text from a file
D.
To append all lines of text to a file

Answer: Option A

Solution

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