Index was outside of the bounds of the array in C#
<p>I am getting an error , the error i am getting is Index was outside the bounds of the array.</p>

<p>My code is,</p>

<pre><code>          try
          {

             string path = (string)(Application.StartupPath + "\\TEMP\\TEMP_BACKFILL_atoz" + "\\" + name_atoz);
             string reader1 = System.IO.File.ReadAllText(path);
             string str = reader1;
             //reader1.Close();
             //reader1.Dispose();
             File.Delete(path);
             string[] Strarray = str.Split(new char[] { Strings.ChrW(10) });
             int abc = Strarray.Length - 2;
             int xyz = 0;
             bool status = true;

             string[] strarray1 = Strarray[xyz].Split(",".ToCharArray());//the line number 3696
             string SecName = strarray1[0];
             string SecSym = strarray1[1];
             int DT = int.Parse(strarray1[2]);
             int TM = int.Parse(strarray1[3]);
             float O = float.Parse(strarray1[4]);
             float H = float.Parse(strarray1[5]);
             float L = float.Parse(strarray1[6]);
             float C = float.Parse(strarray1[7]);
             double V = double.Parse(strarray1[8]);
             double OI = double.Parse(strarray1[9]);
        }
        catch (Exception)
        {

        }
</code></pre>

<p>the StackTrace say that the    at Downloader.Form1.123_DoWork(Object sender, DoWorkEventArgs e) in C:\Documents and Settings\Administrator\Desktop\New Folder\Downloader\Downloader\Downloader\Downloader\Form1.cs:line 3696</p>

<p>Thanks In Advance</p>
