Read all lines from a file.

Namespace: Composite.Core.IO
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public static IEnumerable<string> ReadLines(
	string path,
	Encoding encoding
)
Visual Basic
Public Shared Function ReadLines ( _
	path As String, _
	encoding As Encoding _
) As IEnumerable(Of String)
Visual C++
public:
static IEnumerable<String^>^ ReadLines(
	String^ path, 
	Encoding^ encoding
)

Parameters

path
Type: System..::..String
Path to file to read from.
encoding
Type: System.Text..::..Encoding
Encoding to use when reading.

Return Value

Returns all read lines.

See Also