Accessing the filesystem is a critical part of an app's business logic. The PhoneGap framework offers a very sophisticated API to access and read files, even download and upload data over the Internet. One of the strengths of the PhoneGap framework is that it widely relies on the W3C open standard. If you are familiar with the W3C FileSystem and FileUpload APIs, you will be impressed how quickly you will get used to the device filesystem.
In this chapter you will:
Learn about the Files API, how it works, and how to organize your code to keep it clear and maintainable
Use the Files API to explore the device filesystem
Learn how to read and render data inside a file
Learn how to load and save a file to a device's persistent storage