Toggle side menu
Toggle side menu
Blog
Documentation
Reference
Extensions
Community
API
Support Us
Source
FileHelperAliases
.
FileReadLines
(ICakeContext,
FilePath,
Encoding)
Method
This content is part of a third party extension that is not supported by the Cake project. For more information about this extension see
Cake.FileHelpers
.
Summary
Reads all lines from a file
Assembly
Cake
.FileHelpers
.dll
Namespace
Cake
.FileHelpers
Containing Type
FileHelperAliases
Syntax
public
static
string
[] FileReadLines(
this
ICakeContext context, FilePath file, Encoding encoding)
Attributes
Type
Description
Cake
Method
Alias
Attribute
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 lines.