18. File

The PhoneGap File API provides an application with the methods needed to locate, read, write, copy, move, and remove files in both temporary and persistent file storage on a mobile device. PhoneGap’s implementation of the File API is based in part on the W3C File API: Directories and System specification (www.w3.org/TR/file-system-api). At this time, not all of the capabilities of the W3C specification have been implemented, but the API provides the essential capabilities a mobile developer will be interested in.

Example Application

A sample application, Example 18-1, was created to help illustrate the features of the File API. Because of the length of the application, however, it was not possible to include the complete application ...

Get PhoneGap Essentials: Building Cross-Platform Mobile Apps now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.