title: Best Way to parse File
body: <p>I have a string with following format</p>
  
  <pre><code>Zone: 1 Events: 3
  Zone: 2 Events: 7
  </code></pre>
  
  <p>i am parsing the file with following code</p>
  
  <pre><code>Dim strarr() As String
  strarr = Str.Split("/n")
  for i = 0 to 2
      dim strarrNew() as string
      strarrNew = strarr(i)Split(" ")
      use value strarrNew(0)
          use value strarrNew(1)    
  next 
  </code></pre>
  
  <p>and i am using values directly but if their is a mistake in the string input</p>
  
  <pre><code>Zone:1Events: 3
  </code></pre>
  
  <p>spaces are missing than code will not work.
  What would be the best way to parse file.</p>