Vidyalelo
C# Programming · Q34

File Handling and Input Output in C Sharp

Programming · C# Programming · question 34

Q34

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

A.
Reads all lines from a file into a string
B.
Writes all bytes to a file from a byte array
C.
Checks if a file exists
D.
Reads all bytes from a file into a byte array
Answer

Answer: Option D

Solution

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