As Nishant mentioned
Array.Resize
will do it. But it is expensive operation as each call will create a new array.
Alternatively, you know from your code above your array size ahead of time. So you don't need to Resize it in the loop, rather have it defined once and you are done.
int i;
string[] aRead = new string[5];
for(i=0;i<=5;i++){
aRead[i] = i;
}
Alternative 2: If you think you will need to grow your array then use
ArrayList[
^]
ArrayList myAL = new ArrayList();
for(i=0;i<=5;i++){
myAL.Add(i);
}