While developing your mobile application, you may need or want to read particular files from the storage system or from another location on the device.
In this recipe, we will build an application that will create a text file on the phone's storage filesystem, write content to the file, and then open the file to display the content:
devicestorageby running this line:
phonegap create devicestorage com.myapp.devicestorage devicestorage
cordova platform add ios cordova platform add android
fileplugin by running the following line:
phonegap plugin add org.apache.cordova.file ...