FileExtensions.

Open(IFile, FileMode) Method

Summary

Opens the file using the specified options.
Namespace
Cake.Core.IO
Containing Type
FileExtensions

Syntax

public static Stream Open(this IFile file, FileMode mode)

Parameters

Name Type Description
file IFile The file.
mode FileMode The mode.

Return Value

Type Description
Stream A Stream to the file.