Quantcast
Channel: User FoxInFlame - Stack Overflow
Viewing all articles
Browse latest Browse all 35

Answer by FoxInFlame for Splitting a .txt file into an array in Javascript

$
0
0

You can use the JavaScript API called FileReader.You can search for it in Google.It can read a file using only JS.You can then use

var lines = content.split("\n");

To separate the content by a new line.


Viewing all articles
Browse latest Browse all 35

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>