http://www.androidwebterminal.com/
function insertLine(file, lineNumber, insertText) {
var array = fs.readFileSync(file).toString().split("\n");
array.splice((lineNumber - 1), 0, insertText); fs.writeFileSync(file, array.join('\n'), 'utf8'); }
No comments:
Post a Comment