| IStorageServiceHandlerReadAllLinesAsync Method (String, Encoding) |
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
Namespace: Cimbalino.Toolkit.ServicesAssembly: Cimbalino.Toolkit.Core (in Cimbalino.Toolkit.Core.dll) Version: 2.2.1.0 (2.2.1.0)
Syntax 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:
TaskStringThe
Task object representing the asynchronous operation.
Version Information Portable
Supported in: 4.5
Windows
Supported in: 10.0, 8.1
Windows Phone
Supported in: 8.1
Windows Phone Silverlight
Supported in: 8.1, 8.0
See Also