Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript convert file to array

var fs = require('fs');
var text = fs.readFileSync("./mytext.txt", 'utf-8');
var textByLine = text.split('
')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #convert #file #array
ADD COMMENT
Topic
Name
4+3 =