title: C# float.Parse String
body: <p>I'm new in C# and need to read <code>float</code> values <code>(x, y, z)</code> from file.
  It looks like:</p>
  <blockquote>
  <p>0 -0.01 -0.002</p>
  <p>0.000833333333333 -0.01 -0.002</p>
  </blockquote>
  <p>If Iam trying</p>
  <pre><code>float number = float.Parse(&quot;0,54&quot;); // it works well, but
  float number = float.Parse(&quot;0.54&quot;); // gains exepction.
  </code></pre>
  <p>My code for reading values from each line (could be bugged):</p>
  <pre><code>int begin = 0;
  int end = 0;
  for (int i = 0; i &lt; tempLine.Length; i++)
  {
      if (Char.IsWhiteSpace(tempLine.ElementAt(i)))
      {
          end = i;
          float value = float.Parse(tempLine.Substring(begin, end));
          begin = end;
          System.Console.WriteLine(value);
      }
  }
  </code></pre>
  <p>Someone could help?</p>