OpenFileFromSource Method
Collapse the table of content
Expand the table of content

IFileReaderService.OpenFileFromSource Method (String)


Opens a file from the current directory.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Stream OpenFileFromSource(
	string relativePath


Type: System.String

The file to open.

Return Value

Type: System.IO.Stream

A stream of the specified file.

relativePath is relative to the current directory.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft