Hi I am trying to write the text file using HTML using below code..
function onInitFs(fs) {
fs.root.getFile('paths.txt', { create: true }, function (fileEntry) {
fileEntry.createWriter(function (fileWriter) {
fileWriter.onwriteend = function (e) {
alert('Paths are Stored :-)');
};
fileWriter.onerror = function (e) {
alert('Write failed: ' + e.toString());
};
var bb = new (window.BlobBuilder || window.WebKitBlobBuilder)();
bb.append($.stringify(options));
fileWriter.write(bb.getBlob('text/plain'));
}, errorHandler);
}, errorHandler);
}
But as per my knowledge it is storing in the Temporary memory. But I just want to put the file in the same folder where this function is placed(HTML5).
For example if I am running a file from a domain Project/html/. When I call that function it should write the text file in same directory.
Please let me know whether it is possible or not?