Click or drag to resize
GDFileIOWriteLinesAsync Method (IGDStorageFile, IEnumerableString, UnicodeEncoding)
Writes lines of 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 WriteLinesAsync(
	IGDStorageFile file,
	IEnumerable<string> lines,
	UnicodeEncoding encoding
)

Parameters

file
Type: GDIGDStorageFile
The file that the lines are written to.
lines
Type: System.Collections.GenericIEnumerableString
The list of text strings to write as lines.
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