'Declaration Public Shared Function OpenFile( _
ByVal filePathAn absolute path to a file.As String, _
ByVal fileAccessA constant that defines how the file can be accessed.As System.IO.FileAccess _
) As System.IO.FileStream
public static System.IO.FileStream OpenFile(
string filePath,
System.IO.FileAccess fileAccess
)
public: static System.IO.FileStream* OpenFile(
string* filePath,
System.IO.FileAccess fileAccess
)
public:
static System.IO.FileStream^ OpenFile(
string^ filePath,
System.IO.FileAccess fileAccess
)
Parameters
- filePath
- An absolute path to a file.
- fileAccess
- A constant that defines how the file can be accessed.
Return Value
File stream.