Can only display array by iterating through a for loop
<p>Hello I am trying to make a C# program that downloads files but I am having trouble with the array.</p>

<p>I have it split up the text for downloading and put it into a 2 level jagged array (string[][]).</p>

<p>Now I split up the rows up text by the | char so each line will be formatted like so:
{filename}|{filedescription}|{filehttppath}|{previewimagepath}|{length}|{source}</p>

<p>when I use short test text to put it into a text box it displays fine in the text box.</p>

<p>IE: a string like test|test|test|test|test|test</p>

<p>but if I put in a real string that I would actually be using for the program to DL files the only way I get the string to display is to iterate through it with a for or foreach loop.  If I try to access the data with the index I get an index missing error. (IE array[0])</p>

<p>So this is the code that gets the array to display:</p>

<pre><code>public Form2(string[][] textList, string path)
{
    InitializeComponent();
    textBox1.Text = textBox1.Text + path + Environment.NewLine;
    WebClient downloader = new WebClient();
    foreach (string[] i in textList)
    {
        for(int j=0;j&lt;i.Length;j++)
        {
            textBox1.Text = textBox1.Text + i[j] + Environment.NewLine + @"\\newline" + Environment.NewLine;
        }
    }
}
</code></pre>

<p>And then this is the code that gives an index missing error:</p>

<pre><code>public Form2(string[][] textList, string path)
{
    InitializeComponent();
    textBox1.Text = textBox1.Text + path + Environment.NewLine;
    WebClient downloader = new WebClient();
    foreach (string[] i in textList)
    {
        textBox1.Text = textBox1.Text + i[0] + Environment.NewLine;
        textBox1.Text = textBox1.Text + i[1] + Environment.NewLine;
        textBox1.Text = textBox1.Text + i[2] + Environment.NewLine;
        textBox1.Text = textBox1.Text + i[3] + Environment.NewLine;
        textBox1.Text = textBox1.Text + i[4] + Environment.NewLine;
        textBox1.Text = textBox1.Text + i[5] + Environment.NewLine;
    }
}
</code></pre>

<p>Any help is this is apreciated I don't see why I can access they data through a for loop but not directly it just doesn't make any sense to me.</p>

<p>Also, here is the code that generates the array:</p>

<pre><code>public String[][] finalList(string[] FileList)
{
    String[][] FinalArray = new String[FileList.Length][];
    for (int i = 0; i&lt;FinalArray.Length;i++)
    {
        string[] fileStuff = FileList[i].Split(new char[] {'|'});
        FinalArray[i] = fileStuff;
    }
    return FinalArray;
}
</code></pre>
