FileIO.AppendTextAsync Method

Definition

Overloads

AppendTextAsync(IStorageFile, String)

Appends text to the specified file.

AppendTextAsync(IStorageFile, String, UnicodeEncoding)

Appends text to the specified file using the specified character encoding.

AppendTextAsync(IStorageFile, String)

Appends text to the specified file.

public:
 static IAsyncAction ^ AppendTextAsync(IStorageFile ^ file, Platform::String ^ contents);
/// [Windows.Foundation.Metadata.Overload("AppendTextAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction AppendTextAsync(IStorageFile const& file, winrt::hstring const& contents);
[Windows.Foundation.Metadata.Overload("AppendTextAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction AppendTextAsync(IStorageFile file, string contents);
function appendTextAsync(file, contents)
Public Shared Function AppendTextAsync (file As IStorageFile, contents As String) As IAsyncAction

Parameters

file
IStorageFile

The file that the text is appended to.

contents
String

Platform::String

winrt::hstring

The text to append.

Returns

No object or value is returned when this method completes.

Attributes

See also

Applies to

AppendTextAsync(IStorageFile, String, UnicodeEncoding)

Appends text to the specified file using the specified character encoding.

public:
 static IAsyncAction ^ AppendTextAsync(IStorageFile ^ file, Platform::String ^ contents, UnicodeEncoding encoding);
/// [Windows.Foundation.Metadata.Overload("AppendTextWithEncodingAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction AppendTextAsync(IStorageFile const& file, winrt::hstring const& contents, UnicodeEncoding const& encoding);
[Windows.Foundation.Metadata.Overload("AppendTextWithEncodingAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction AppendTextAsync(IStorageFile file, string contents, UnicodeEncoding encoding);
function appendTextAsync(file, contents, encoding)
Public Shared Function AppendTextAsync (file As IStorageFile, contents As String, encoding As UnicodeEncoding) As IAsyncAction

Parameters

file
IStorageFile

The file that the text is appended to.

contents
String

Platform::String

winrt::hstring

The text to append.

encoding
UnicodeEncoding

The character encoding of the file.

Returns

No object or value is returned when this method completes.

Attributes

See also

Applies to