FileHelperAliases.

FileReadText(ICakeContext, FilePath, Encoding) Method

Summary

Reads all text from a file
Assembly
Cake.FileHelpers.dll
Namespace
Cake.FileHelpers
Containing Type
FileHelperAliases

Syntax

public static string FileReadText(this ICakeContext context, FilePath file, Encoding encoding)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
file FilePath The file to read.
encoding Encoding The encoding to use for the file.

Return Value

Type Description
string The file's text.