streamreader_object.Close Method

Closes the file or device associated with a StreamReader Object.

steamreader_object.Close

Prerequisites

None

Parameters

None

Remarks

This method closes the file or device that is associated with a StreamReader Object. If any I/O error occurs, it throws an Exception. No error occurs if the file or device is not currently open.

Examples

streamreader_object.Close()

See Also

File and Serial I/O | New StreamReader