file - Phonegap 3.4 - getFile fails -
To upgrade, read my app now to a text file (db.txt) in the phonegap 3.4 and root of the www folder it happens. The following snippet used for work: window.requestFileSystem (LocalFileSystem.PERSISTENT, 0, this.gotFS, this.fail); This.gotFS = function (file system) {console.log (fileSystem.name); FileSystem.root.getFile ("../ MyappName.app/www/db.txt", {creates: false, exclusive: true}, file_reader.gotFileEntry, file_reader.fail); }; I've read some changes in the file API, but even if I fileSystem.root.getFile ("db.txt", {make: false) , Exclusive: true}, file_reader.gotFileEntry, file_reader.fail); }; or fileSystem.root.getFile (fileSystem.root.toURL) + "db.txt", {create: wrong, exclusive: true} , File_reader.gotFileEntry, file_reader.fail); }; file_reader.fail is always called with the error code of 5, which is the encoding_ERR. So basically how do you read a file in the root of the www folder? New File API?