Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add line from file to array

var fs = require('fs');
var myArray = fs.readFileSync('test.txt', 'utf8').split('
');
 
PREVIOUS NEXT
Tagged: #javascript #add #line #file #array
ADD COMMENT
Topic
Name
6+9 =