adplus-dvertising
frame-decoration

Question

Which of these is a method used for reading bytes from the file?

a.

clear()

b.

ReadByte()

c.

put()

d.

write()

Posted under C# programming

Answer: (b).ReadByte()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of these is a method used for reading bytes from the file?

Similar Questions

Discover Related MCQs

Q. Which of these is a method used to clear all the data present in output buffers?

Q. Choose the filemode method which is used to create a new output file with the condition that the file with same name if exists will destroy the old file:

Q. Choose the filemode method which is used to create a new output file with the condition that the file with same name must not exist.

Q. Which property among the following represents the current position of the stream?

Q. Which among the following is used for storage of unmanaged memory aspects?

Q. Which among the following is used for storage of memory aspects?

Q. Which of these classes is used for input and output operation when working with bytes?

Q. Which of these data types is returned by every method of OutputStream?

Q. Which of these classes is used to read and write bytes in a file?

Q. Which among the following attempts to read up to count bytes into buffer starting at buffer[offset], returning the number of bytes successfully read?

Q. Select the action of the method long seek()?

Q. Select the statements which define the stream.

Q. Name the method which returns integer as -1 when the end of file is encountered.

Q. Select the method which returns the number of bytes from the array buffer:

Q. Select the method which writes the contents of the stream to the physical device.

Q. The method used to write a single byte to an output stream?

Q. Choose the stream class method which is used to close the connection:

Q. Choose the class on which all stream classes are defined?

Q. Select the namespace on which the stream classes are defined?

Q. Select the method used to write single byte to a file?