I wanted C++ to read the file and put the numbers into an array of integers. The amount of numbers in the text file could also change, so it would have to be dynamic. The array would also then later be read in order. Is there any way to do this?
Scan for the number of commas, add 1, create an array that big, read in from file to a string and separate that with a ", " delimiter. Create a for loop to output. <- This can probably be simplified immensely, and I didn't use vectors due to the specification of arrays.