title: C# string to float?
body: <p>I have this bit of code here:</p>
  
  <pre><code>int i = 0;
  
          StreamReader re = File.OpenText("TextFile1.txt");
          string input = null;
  
          while ((input = re.ReadLine()) != null)
          {
              string[] sites = input.Split(' ');
              for (int j = 0; j &lt; sites.Length; j++)
              {
                  MyArray[i, j] = Convert.ToInt32(sites[j]);
              }
              i++;
          }
  
  
       for (int a = 0; a &lt; 5; a++)
       {
              for (int j = 0; j &lt; 5; j++)
              {
                  Console.Write(MyArray[a, j] + " ");
  
              }
              Console.WriteLine();
       }
  </code></pre>
  
  <p>My problem is this line of code</p>
  
  <pre><code>MyArray[i, j] = Convert.ToInt32(sites[j]);
  </code></pre>
  
  <p>Its getting converted to an int, how do I convert it to a float?</p>