temp.writeText method

Writes the specified text to the specified file.

Syntax

var promise = WinJS.Application.temp.writeText(fileName, text);

Parameters

  • fileName
    Type: string

    The name of the file.

  • text
    Type: string

    The text to write.

Return value

Type: Promise

A Promise that completes with the number of bytes successfully written to the file.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Application

See also

temp