Click or drag to resize
GDFileIOReadLinesAsync Method (IGDStorageFile, UnicodeEncoding)
Reads the contents of the specified file and returns lines of text.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public static IAsyncOperation<IList<string>> ReadLinesAsync(
	IGDStorageFile file,
	UnicodeEncoding encoding
)

Parameters

file
Type: GDIGDStorageFile
The file to read.
encoding
Type: Windows.Storage.StreamsUnicodeEncoding
The character encoding to use.

Return Value

Type: IAsyncOperationIListString
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.
See Also