FileIO.WriteLinesAsync FileIO.WriteLinesAsync FileIO.WriteLinesAsync FileIO.WriteLinesAsync FileIO.WriteLinesAsync Method

Definition

Overloads

WriteLinesAsync(IStorageFile, IIterable<String>) WriteLinesAsync(IStorageFile, IIterable<String>) WriteLinesAsync(IStorageFile, IIterable<String>) WriteLinesAsync(IStorageFile, IIterable<String>) WriteLinesAsync(IStorageFile, IIterable<String>)

Writes lines of text to the specified file.

WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding) WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding) WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding) WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding) WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding)

Writes lines of text to the specified file using the specified character encoding.

WriteLinesAsync(IStorageFile, IIterable<String>) WriteLinesAsync(IStorageFile, IIterable<String>) WriteLinesAsync(IStorageFile, IIterable<String>) WriteLinesAsync(IStorageFile, IIterable<String>) WriteLinesAsync(IStorageFile, IIterable<String>)

Writes lines of text to the specified file.

public : static IAsyncAction WriteLinesAsync(IStorageFile file, IIterable<Platform::String> lines)
static IAsyncAction WriteLinesAsync(IStorageFile file, IIterable<winrt::hstring> lines) const;
public static IAsyncAction WriteLinesAsync(IStorageFile file, IEnumerable<String> lines)
Public Shared Function WriteLinesAsync(file As IStorageFile, lines As IEnumerable(Of String)) As IAsyncAction
Windows.Storage.FileIO.writeLinesAsync(file, lines).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

The file that the lines are written to.

lines
IEnumerable<String> IEnumerable<String> IEnumerable<String>

The list of text strings to write as lines.

Returns

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

WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding) WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding) WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding) WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding) WriteLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding)

Writes lines of text to the specified file using the specified character encoding.

public : static IAsyncAction WriteLinesAsync(IStorageFile file, IIterable<Platform::String> lines, UnicodeEncoding encoding)
static IAsyncAction WriteLinesAsync(IStorageFile file, IIterable<winrt::hstring> lines, UnicodeEncoding encoding) const;
public static IAsyncAction WriteLinesAsync(IStorageFile file, IEnumerable<String> lines, UnicodeEncoding encoding)
Public Shared Function WriteLinesAsync(file As IStorageFile, lines As IEnumerable(Of String), encoding As UnicodeEncoding) As IAsyncAction
Windows.Storage.FileIO.writeLinesAsync(file, lines, encoding).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

The file that the lines are written to.

lines
IEnumerable<String> IEnumerable<String> IEnumerable<String>

The list of text strings to write as lines.

encoding
UnicodeEncoding UnicodeEncoding UnicodeEncoding

The character encoding of the file.

Returns

No object or value is returned when this method completes.

See also