Examveda

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

A. Reads all lines of text from a file into a string

B. Reads all bytes from a file into a byte array

C. Reads all bytes from a file into a string

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on File Handling and Input Output in C Sharp