This question has plagued me for some time now.
In C++, is there a way to change the size of an array, add to the end of one, subtract an element from one(shorten by an index)?
In perl you use, pop, splice,push
What happens when you don't know how much storage to set aside?
Do you just keep track of how many elements you store then if it over runs the array you write them to file and re-initialize. That sounds too complicated and slow.