title: How can I add elements to an array in vb 2010
body: <p>Hey I got good news I am close to understanding what I need to do. I have seen a lot of data that I can use later. But right now I just need to more or less get a refresher course in this. </p>
  
  <p>I need to write elements to an array. I know that part sort of..... But I won't know the array length until I run an XML file. So the file may have 1 to over 9000 (dbz). I know I will need a for loop, I just don't know how to write a for loop very well. </p>
  
  <p>I got a code from the book but I don't see how I can edit this. </p>
  
  <pre><code>Dim arraytester() As String
  For i As Integer = 0 To arraytester.Length - 1
      'little lost here 
  Next
  </code></pre>
  
  <p>So how would I get around the arraytester.Length being a problem if I don't know the length of the file am am working with. </p>
  
  <p>also how would I add it to the array, it is only show output in my book. (or maybe I am just losing it)</p>