File

Required Phonegap plugins

cordova-plugin-file

API Documentation

Method Summary

writeToFile

Write to a file

Params

TypeNameSummaryRequired

String

fileName

fileName

Required

String

dir

cordova file dir (cordova.file*)

Required

Object

data

data to write to file

Required

Function

callbackSuccess

on success callback

Optional

Function

callbackError

on error callback

Optional

readFromFile

Read data from a file

Params

TypeNameSummaryRequired

String

fileName

fileName

Required

String

dir

cordova file dir (cordova.file*)

Required

Function

callbackSuccess

on success callback

Optional

Function

callbackError

on error callback

Optional

Example Usage

Last updated