O'Reilly logo

PhoneGap Essentials: Building Cross-Platform Mobile Apps by John M. Wargo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required