The code below will run to print out element in the array to file.
for (int i = 0; i < MAX_ITEM; ++i) { if (i == (MAX_ITEM-1)) { File_stock &l