PathIO.WriteLinesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteLinesAsync(String, IIterable<String>) |
Writes lines of text to the file at the specified path or Uniform Resource Identifier (URI). |
WriteLinesAsync(String, IIterable<String>, UnicodeEncoding) |
Writes lines of text to the file at the specified path or Uniform Resource Identifier (URI) using the specified character encoding. |
WriteLinesAsync(String, IIterable<String>)
Writes lines of text to the file at the specified path or Uniform Resource Identifier (URI).
public:
static IAsyncAction ^ WriteLinesAsync(Platform::String ^ absolutePath, IIterable<Platform::String ^> ^ lines);
/// [Windows.Foundation.Metadata.Overload("WriteLinesAsync")]
static IAsyncAction WriteLinesAsync(winrt::hstring const& absolutePath, IIterable<winrt::hstring> const& lines);
[Windows.Foundation.Metadata.Overload("WriteLinesAsync")]
public static IAsyncAction WriteLinesAsync(string absolutePath, IEnumerable<string> lines);
function writeLinesAsync(absolutePath, lines)
Public Shared Function WriteLinesAsync (absolutePath As String, lines As IEnumerable(Of String)) As IAsyncAction
Parameters
- absolutePath
-
String
Platform::String
winrt::hstring
The path of the file that the lines are written to.
The list of text strings to append as lines.
Returns
No object or value is returned when this method completes.
- Attributes
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 in the method overload is used.
See also
Applies to
WriteLinesAsync(String, IIterable<String>, UnicodeEncoding)
Writes lines of text to the file at the specified path or Uniform Resource Identifier (URI) using the specified character encoding.
public:
static IAsyncAction ^ WriteLinesAsync(Platform::String ^ absolutePath, IIterable<Platform::String ^> ^ lines, UnicodeEncoding encoding);
/// [Windows.Foundation.Metadata.Overload("WriteLinesWithEncodingAsync")]
static IAsyncAction WriteLinesAsync(winrt::hstring const& absolutePath, IIterable<winrt::hstring> const& lines, UnicodeEncoding const& encoding);
[Windows.Foundation.Metadata.Overload("WriteLinesWithEncodingAsync")]
public static IAsyncAction WriteLinesAsync(string absolutePath, IEnumerable<string> lines, UnicodeEncoding encoding);
function writeLinesAsync(absolutePath, lines, encoding)
Public Shared Function WriteLinesAsync (absolutePath As String, lines As IEnumerable(Of String), encoding As UnicodeEncoding) As IAsyncAction
Parameters
- absolutePath
-
String
Platform::String
winrt::hstring
The path of the file that the lines are appended to.
The list of text strings to append as lines.
- encoding
- UnicodeEncoding
The character encoding of the file.
Returns
No object or value is returned when this method completes.
- Attributes