Click or drag to resize
Cimbalino ToolkitStorageServiceHandlerReadAllLinesAsync Method (String, Encoding)
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.

Namespace: Cimbalino.Toolkit.Services
Assembly: Cimbalino.Toolkit.Core (in Cimbalino.Toolkit.Core.dll) Version: 2.2.1.0 (2.2.1.0)
Syntax
C#
public virtual Task<string[]> ReadAllLinesAsync(
	string path,
	Encoding encoding
)

Parameters

path
Type: SystemString
The file to open for reading.
encoding
Type: System.TextEncoding
The encoding applied to the contents of the file.

Return Value

Type: TaskString
The Task object representing the asynchronous operation.

Implements

IStorageServiceHandlerReadAllLinesAsync(String, Encoding)
Version Information

Windows

Supported in: 10.0, 8.1

Windows Phone

Supported in: 8.1

Windows Phone Silverlight

Supported in: 8.1, 8.0
See Also