Share via


File.OpenRead Method

Opens an existing file for reading.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static FileStream OpenRead (
         stringpath
)

Parameters

  • path
    The file to be opened for reading.

Return Value

A read-only FileStream on the specified path.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

File Class
File Members
System.IO Namespace