Hello, I have included a file info.json in www directory. I am trying to read it with the FileSystem but it gives me two types of error:
var f = 'file:///android_asset/www/info.json';
resolveLocalFileSystemURL(f, null, errorHandler); // I get Error: NOT_FOUND_ERR
If I check the resources tab in the chrome inspector the URL shows ‘file:///android_asset/www/info.json’
I also tried to request a FileSystem and then tried to getFile, I get a different error
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs){FS = fs}, errorHandler);
FS.root.getFile(‘file:///android_asset/www/info.json’, null, function(e){Entry=e}, errorHandler) // Error: 5 ENCODING
How should I do to locate and read the file?