function appendFile(filePath, content) {
    var fileObj = new File();
    try {
        fileObj.Open(filePath, 0, 0);
        fileObj.Write(content + "\n");
    } catch(e) {
        // IO error
        throw "UnableToWriteFile(" + filePath + "):" + e;
    } finally {
        fileObj.Close();
    }
}
/*
 Append the passed string to a file with specified path
*/
Append the passed string to a file with specified path
Append the passed string to a file with specified path
function appendFile(filePath, content) {
    var fileObj = new File();
    try {
        fileObj.Open(filePath, 0, 0);
        fileObj.Write(content + "\n");
    } catch(e) {
        throw "UnableToWriteFile(" + filePath + "):" + e;
    } finally {
        fileObj.Close();
    }
}
function appendFile ( filePath , content ) { var fileObj = new File ( ) ; try { fileObj . Open ( filePath , 0 , 0 ) ; fileObj . Write ( content + "\n" ) ; } catch ( e ) { throw "UnableToWriteFile(" + filePath + "):" + e ; } finally { fileObj . Close ( ) ; } }
Append the passed string to a file with specified path
Append the passed string to a file with specified path
// IO error