So I have a text file with lines of information, with several data pieces on each line that I need to store in an array of arrays.
This is simple enough when they are split on whitespace or commas, but with this particular file, some of the data has white space within a single data field.
Eg.
123 4325 Hello World 43
394 3892 How are you 23
Anybody know a way to split each line into 4 strings each, with 'Hello World' and 'How are you' remaining together?
Ie: Array[0] = [123, 4325, Hello World, 43] and Array[1] = [394, 3892, How are you, 23]
Sorry I'm fairly new to JS so I'm not sure if there's a reall simple answer staring me in the face.
Thanks