C-Sharp File Operations Interview Questions - 2

Question: 6

Write about the read byte, flush?

This method reads one byte and casts it into an integer, which is returned by the method.

If the end of the stream has been reached when this method is called, a-1 is returned.

This method has no parameters.

This method writes the contents of the stream to the physical device.

Question: 7

Define file info class?

The File Info class is the class which contains the instance method.

The method of File Info class does not perform the security checks.

To create File Info object, pass a valid file path to its constructor.

Related Questions