Jaa


PathIO.ReadLinesAsync Method

Definition

Overloads

ReadLinesAsync(String)

Reads the contents of the file at the specified path or Uniform Resource Identifier (URI) and returns lines of text.

ReadLinesAsync(String, UnicodeEncoding)

Reads the contents of the file at the specified path or Uniform Resource Identifier (URI) using the specified character encoding and returns lines of text.

ReadLinesAsync(String)

Reads the contents of the file at the specified path or Uniform Resource Identifier (URI) and returns lines of text.

public:
 static IAsyncOperation<IVector<Platform::String ^> ^> ^ ReadLinesAsync(Platform::String ^ absolutePath);
/// [Windows.Foundation.Metadata.Overload("ReadLinesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVector<winrt::hstring>> ReadLinesAsync(winrt::hstring const& absolutePath);
[Windows.Foundation.Metadata.Overload("ReadLinesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IList<string>> ReadLinesAsync(string absolutePath);
function readLinesAsync(absolutePath)
Public Shared Function ReadLinesAsync (absolutePath As String) As IAsyncOperation(Of IList(Of String))

Parameters

absolutePath
String

Platform::String

winrt::hstring

The path of the file to read.

Returns

When this method completes successfully, it returns the contents of the file as a list (type IVector) of lines of text. Each line of text in the list is represented by a String object.

Attributes

See also

Applies to

ReadLinesAsync(String, UnicodeEncoding)

Reads the contents of the file at the specified path or Uniform Resource Identifier (URI) using the specified character encoding and returns lines of text.

public:
 static IAsyncOperation<IVector<Platform::String ^> ^> ^ ReadLinesAsync(Platform::String ^ absolutePath, UnicodeEncoding encoding);
/// [Windows.Foundation.Metadata.Overload("ReadLinesWithEncodingAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVector<winrt::hstring>> ReadLinesAsync(winrt::hstring const& absolutePath, UnicodeEncoding const& encoding);
[Windows.Foundation.Metadata.Overload("ReadLinesWithEncodingAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IList<string>> ReadLinesAsync(string absolutePath, UnicodeEncoding encoding);
function readLinesAsync(absolutePath, encoding)
Public Shared Function ReadLinesAsync (absolutePath As String, encoding As UnicodeEncoding) As IAsyncOperation(Of IList(Of String))

Parameters

absolutePath
String

Platform::String

winrt::hstring

The path of the file to read.

encoding
UnicodeEncoding

The character encoding of the file.

Returns

When this method completes successfully, it returns the contents of the file as a list (type IVector) of lines of text. Each line of text in the list is represented by a String object.

Attributes

See also

Applies to