Click or drag to resize
GDFileIOWriteTextAsync Method (IGDStorageFile, String, UnicodeEncoding)
Writes text to the specified file using the specified character encoding.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public static IAsyncAction WriteTextAsync(
	IGDStorageFile file,
	string contents,
	UnicodeEncoding encoding
)

Parameters

file
Type: GDIGDStorageFile
The file that the text is written to.
contents
Type: SystemString
The text to write.
encoding
Type: Windows.Storage.StreamsUnicodeEncoding
The character encoding of the file.

Return Value

Type: IAsyncAction
No object or value is returned when this method completes.
Remarks
This method attempts to automatically detect the encoding of a file based on the presence of byte order marks. If an encoding cannot be detected, the encoding specified by the caller is used.
See Also