local.writeText method

Applies to Windows and Windows Phone

Writes the specified text to the specified file.

Syntax


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

Parameters

fileName

Type: String

The name of the file.

text

Type: string

The content to be written to the file.

Return value

Type: Promise

A promise that completes with a value that is the number of characters written.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Application

Library

Base.js

See also

local

 

 

Show:
© 2014 Microsoft. All rights reserved.