i have a file that has 1000 numbers in a list form, how would i tell the program to put 10 numbers in a row \n 10 numbers in a row \n 10 numbers in a row.... and keep going until the input file runs out of numbers?
I think you could do this with just one int variable instead of ten. You could use a nested loop like Zhuge said or keep track of a counter and check with an if statement if it's time to add a newline character.