Click or drag to resize
Cimbalino ToolkitStorageServiceHandlerWriteAllTextAsync Method (String, String, Encoding)
Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.

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 WriteAllTextAsync(
	string path,
	string contents,
	Encoding encoding
)

Parameters

path
Type: SystemString
The file to write to.
contents
Type: SystemString
The string to write to the file.
encoding
Type: System.TextEncoding
The encoding to apply to the string.

Return Value

Type: Task
The Task object representing the asynchronous operation.

Implements

IStorageServiceHandlerWriteAllTextAsync(String, String, 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