function saveSettings(settingsArray, filePath) {
    var str = "";
    for(var i = 0, len = settingsArray.length; i < len; i++) {
        str += settingsArray[i] + "\n";
    }
    try {
        writeFile(filePath, str);
    } catch(e) {
        throw "UnableToWriteSettingsException:" + e;
    }
}
/*
 Writes the strings in the array to a text file and separates
 them by a newline character
*/
Writes the strings in the array to a text file and separates
them by a newline character
Writes the strings in the array to a text file and separates them by a newline character
function saveSettings(settingsArray, filePath) {
    var str = "";
    for(var i = 0, len = settingsArray.length; i < len; i++) {
        str += settingsArray[i] + "\n";
    }
    try {
        writeFile(filePath, str);
    } catch(e) {
        throw "UnableToWriteSettingsException:" + e;
    }
}
function saveSettings ( settingsArray , filePath ) { var str = "" ; for ( var i = 0 , len = settingsArray . length ; i < len ; i ++ ) { str += settingsArray [ i ] + "\n" ; } try { writeFile ( filePath , str ) ; } catch ( e ) { throw "UnableToWriteSettingsException:" + e ; } }
Writes the strings in the array to a text file and separates
them by a newline character
Writes the strings in the array to a text file and separates them by a newline character