EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

local.readText method

Applies to Windows and Windows Phone

Reads the specified file. If the file doesn't exist, the specified default value is returned.

Syntax


var promise = WinJS.Application.local.readText(fileName, def);

Parameters

fileName

Type: String

The file to read from.

def

Type: String

The default value to be returned if the file failed to open.

Return value

Type: Promise

A promise that completes with a value that is either the contents of the file, or the specified default value.

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

 

 

Anzeigen:
© 2014 Microsoft