Click or drag to resize
GDFileIOReadLinesAsync Method (IGDStorageFile)
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
)

Parameters

file
Type: GDIGDStorageFile
The file to read.

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.
Remarks
This method uses the character encoding of the specified file. If you want to specify different encoding, call ReadLinesAsync(IGDStorageFile, UnicodeEncoding) instead.
See Also