Click or drag to resize
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
)

Parameters

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

Return Value

Type: IAsyncOperationString
When 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