I'm loading data from two different files. Whenever a file is loaded, I call
empty array before adding the new file's elements. The first file contains 10 elements, the second contains 19. I also print out a log and get the following:
Load file 1
Size after empty array: -1
Size after loading file 1: 10
Load file 2
Size before loading: 10
Size after empty array: -1
size after loading file 2: 29
Now if file 2 only contains 19 elements, and the array size reports -1 after emptying it, why then do I still have the original 10 elements in the array?
"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein