Click or drag to resize
Cimbalino ToolkitStorageServiceHandlerWriteAllLinesAsync Method (String, IEnumerableString, Encoding)
Creates a new file by using the specified encoding, writes a collection of strings to the file, and then closes the file.

Namespace: Cimbalino.Toolkit.Services
Assembly: Cimbalino.Toolkit.Core (in Cimbalino.Toolkit.Core.dll) Version: 2.2.1.0 (2.2.1.0)
Syntax
C#
public virtual Task WriteAllLinesAsync(
	string path,
	IEnumerable<string> contents,
	Encoding encoding
)

Parameters

path
Type: SystemString
The file to write to.
contents
Type: System.Collections.GenericIEnumerableString
The lines to write to the file.
encoding
Type: System.TextEncoding
The character encoding to use.

Return Value

Type: Task
The Task object representing the asynchronous operation.

Implements

IStorageServiceHandlerWriteAllLinesAsync(String, IEnumerableString, Encoding)
Version Information

Windows

Supported in: 10.0, 8.1

Windows Phone

Supported in: 8.1

Windows Phone Silverlight

Supported in: 8.1, 8.0
See Also