I have a file input.txt like:
n
a1 a3 a3 an
where n is quantity of elements(array size), and a1 a2 a3 an are the elements.
How can I create an array of a1, a2, a3, an objects?
I tried to do this using example from this question, but as I understand I can't create array in the loop as it will create it on every iteration.
 
     
     
     
    