Suppose I have a *.txt file with this content (4 lines of 5 elements each):
1,2,3,4,5 6,7,8,9,10 11,12,13,14 15,16,17,18 Is it possible to read this file using JS and make an array of this form from it: arr = [[1,2,3,4,5],[6,7,8,9,10],[11,12,13,14,15],[16,17,18,19,20]]; ?
In PHP did this maneuver, but JS only investigating, and not everything is clear for now. Thank you in advance for your help!