| GDFileIOReadTextAsync Method (IGDStorageFile, UnicodeEncoding) |
Reads the contents of the specified file using the specified character encoding and returns text.
Namespace:
GD
Assembly:
GD (in GD.dll) Version: 255.255.255.255
Syntax public static IAsyncOperation<string> ReadTextAsync(
IGDStorageFile file,
UnicodeEncoding encoding
)
public:
static IAsyncOperation<String^>^ ReadTextAsync(
[InAttribute] IGDStorageFile^ file,
[InAttribute] UnicodeEncoding^ encoding
)
GD.GDFileIO.ReadTextAsync = function(file, encoding);
Parameters
- file
- Type: GDIGDStorageFile
The file to read. - encoding
- Type: Windows.Storage.StreamsUnicodeEncoding
The character encoding to use.
Return Value
Type:
IAsyncOperationStringWhen this method completes successfully, it returns the contents of the file as a text string.
Remarks Any object that implements the
IGDStorageFile interface may be passed to this method through the file parameter.
See Also