Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 861 Bytes

fileio_writetextasync_1850452055.md

File metadata and controls

31 lines (22 loc) · 861 Bytes
-api-id -api-type
M:Windows.Storage.FileIO.WriteTextAsync(Windows.Storage.IStorageFile,System.String)
winrt method

Windows.Storage.FileIO.WriteTextAsync

-description

Writes text to the specified file.

-parameters

-param file

The file that the text is written to.

-param contents

The text to write.

-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.

-examples

-see-also

WriteTextAsync(IStorageFile, String, UnicodeEncoding)