Hello, I am trying to read instructions from a text file into an array. but i dont know the number of instructions in the text file, so i need to use a dynamic array. But i dont know how i can increase the number of elements in the dynamics array while reading from the text file. You can find the code I have so far in the text file. The problem is that in effect i am only reading in the last instruction, because whenever the file pointer goes to a new line a new string array is created which erases the previous content. so i need to find a way of storing the previous content, but how? i tried many ways, but i just cant do it. please help me out. Note: I have to use dynamic arrays.