Hi Marek,
As Ingwie said I think that using the file protocol to access local files in appjs is a hard road to travel. Since you will be accessing the files through chromium you will always be subject to various security restrictions and problems (even using flags to turn those restrictions off) since it is the last thing the browser developers really want you to do.
However in appjs you are already running on the users local machine rather than running from a remote server so actually direct access to files is best provided by nodejs. There are many ways to achieve this, one simple way is to add the require object from nodejs directly to the window object. So in app.js search for the "window.on('ready', function() {" line and add in a line afterwards:-
window.require = require;
Then in the index.html page you now have a window.require object that can load any nodejs modules that you want access to. Hence you can access the file system object:
http://nodejs.org/api/fs.html
<script>
var fs = window.require("fs");
fs.writeFile("/tmp/test", "Hey there!", function(err) {
if(err) {
console.log(err);
} else {
console.log("The file was saved!");
}
});
</script>
The objects that are required are cached by nodejs so there is no problem to load or access them on each page.
/Simon