How do i add set of numbers to specific one index in a List<float>?
<pre><code>int numberofframesX = 0;
int numberofframesY = 0;
string framesX = "";
string framesY = "";
string X = "";
string Y = "";
string t = path + "\\" + fileName;
OptionsFile setting_file = new OptionsFile(t);
string XX = setting_file.GetKey("Number Of Frames X");
string YY = setting_file.GetKey("Number Of Frames Y");
numberofframesX = Convert.ToInt32(XX);
numberofframesY = Convert.ToInt32(YY);    

for (int i = 1; i &lt; numberofframesX ; i++)
{
    X  = string.Format("Frame_X_{0} ", i);
    framesX = setting_file.GetKey(X);
    List&lt;string&gt; floatStrings = new List&lt;string&gt;(framesX.Split(new char[] { ',' }));
    List&lt;float&gt; test = new List&lt;float&gt;(  floatStrings.Select(tempStr =&gt; (float)Convert.ToDouble(tempStr)).ToList()); 
    wo1.woc.Point_X = test; 
}
</code></pre>

<p>I need to do what its shown like in the two images in the links below in the bottom of my question. woc index [0] have two Lists of float allready i need that in Point_X to add the numbers each number to an index in the Point_X for example frame 1 is Frame_X_1 so the numbers near it on the right should have been added ot Point_X indexs then in woc[1] Frame_X_2 and so on.....</p>

<p>This is the text file ( setting_file)</p>

<pre><code>Frame_X_1 =323,332,322,332
Frame_Y_1 =206,212,218,203
Frame_X_2 =323,332,318,332
Frame_Y_2 =206,212,269,203
Frame_X_3 =323,332,318,332
Frame_Y_3 =206,212,269,203
Frame_X_4 =323,332,318,332
Frame_Y_4 =206,212,269,203
Frame_X_5 =323,332,318,332
Frame_Y_5 =206,212,269,203
Frame_X_6 =323,332,318,332
Frame_Y_6 =206,212,269,203
Frame_X_7 =323,332,318,332
Frame_Y_7 =206,212,269,203
Frame_X_8 =323,332,318,332
Frame_Y_8 =206,212,269,203
Number Of Frames X=4
Number Of Frames Y=4
</code></pre>

<p>And this is the code of woc WireObjectCoordinates class:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnimationEditor
{
    class WireObjectCoordinates
    {
        public List&lt;float&gt; Point_X = new List&lt;float&gt;();
        public List&lt;float&gt; Point_Y = new List&lt;float&gt;();

        public WireObjectCoordinates()
        {
        }

        public WireObjectCoordinates(WireObjectCoordinates w)
        {
            Point_X.AddRange(w.Point_X);
            Point_Y.AddRange(w.Point_Y);
        }

        public void Set(WireObjectCoordinates w)
        {
            for (int i = 0; i &lt; Point_X.Count; i++)
            {
                Point_X[i] = w.Point_X[i];
                Point_Y[i] = w.Point_Y[i];
            }
        }
    }
}
</code></pre>

<p>And GetKey function from the setting_file(OptionsFile) class:</p>

<pre><code>/*----------------------------------------------------------
 * Function     : GetKey
 * Description  : gets the value of the key.
 * Parameters   : key
 * Return       : value of the key if key exist, null if not exist
 * --------------------------------------------------------*/
    public string GetKey(string key)
    {

      //  string value_of_each_key;
        string key_of_each_line;
        string line;
        int index;
        string key_value;
        key_value = null;

        sr = new StreamReader(Options_File);
        while (null != (line = sr.ReadLine()))
        {


            index = line.IndexOf("=");


           //    value_of_each_key = line.Substring(index+1);



            if (index &gt;= 1)
            {
                key_of_each_line = line.Substring(0, index);
                if (key_of_each_line == key)
                {
                    key_value = line.Substring(key.Length + 1);
                }

            }
            else
            {
            }


        }
        sr.Close();
        return key_value;
    }
</code></pre>

<p>I added now two images of how WOC and Point_X and Point_Y should look like:</p>

<p><a href="http://imageshack.us/photo/my-images/515/imag0649b.jpg/" rel="nofollow">http://imageshack.us/photo/my-images/515/imag0649b.jpg/</a>
http://imageshack.us/photo/my-images/23/imag0648me.jpg/</p>
