this is my code that read from the txt file then affffds its contents to an array with an index of 10 i want it to list all of the contents but it only lists the last one 10 time.