title: C# looping through an array
body: <p>I am looping through an array of strings, such as (1/12/1992 apple truck 12/10/10 orange bicycle). The array's length will always be divisible by 3. I need to loop through the array and grab the first 3 items (I'm going to insert them into a DB) and then grab the next 3 and so on and so forth until all of them have been gone through.</p>
  
  <pre><code>//iterate the array
  for (int i = 0; i &lt; theData.Length; i++)
  {
      //grab 3 items at a time and do db insert, continue until all items are gone. 'theData' will always be divisible by 3.
  }
  </code></pre>