| 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
)
public:
static IAsyncOperation<IList<String^>^>^ ReadLinesAsync(
[InAttribute] IGDStorageFile^ file,
[InAttribute] UnicodeEncoding^ encoding
)
GD.GDFileIO.ReadLinesAsync = function(file, encoding);
Parameters
- file
- Type: GDIGDStorageFile
The file to read. - encoding
- Type: Windows.Storage.StreamsUnicodeEncoding
The character encoding to use.
Return Value
Type:
IAsyncOperationIListStringWhen 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