We are building an iOS app that uses the FileWriter to write to a text file in temporary storage. The code to write to the file is taken from the File System sample app here: http://docs.telerik.com/platform/samples/sample-file/
Currently, the app is able to write to the file with the necessary data. However, when we restart the app and try to write to the file again it overwrites the previous file rather than appending.
var fsHelper = new FileSystemHelper();
fsHelper.writeLine(
"offline.txt",
"test",
success,
error
);
function success(msg) {
console.log(msg);
}
function error(msg) {
console.log(msg);
}
The code that we are using for the FileSystemHelper can be found here: https://github.com/Icenium/sample-file/blob/master/sample-file/scripts/fileHelper.js
We are testing the code within the AppBuilder Device Simulator.