Can someone please help me figure out how to write a script that will read a text file that contains a large amount of integers and put them into an array? I want to put the integers into an array so that I can merge sort and count the inversions within the array. I will be using node.js to execute the file.

Thanks!