FileSystemModule.appendTextToFile(filename) Method (JS)
Asynchronously appends a string to a UTF-8 encoded file.
Example
var FileSystem = require("FuseJS/FileSystem");
FileSystem.appendTextToFile(FileSystem.dataDirectory + "/" + "myfile.txt", "Hello buddy")
.then(function() {
console.log("Successful append");
}, function(error) {
console.log(error);
});
Location
- Namespace
- Fuse.FileSystem
- Package
- Fuse.FileSystem 2.9.1
Returns
Promise
A Promise of nothing.