The following code will split your data into the two arrays you have declared:
static int samples = 4;
static double[,] input = new double[samples,2];
static double[] output = new double[samples];
public static void convertCSV()
{
StreamReader reader = new StreamReader("D:\\and.csv");
int index = 0;
try
{
string str;
while(index < samples && (str = reader.ReadLine()) != null)
{
string[] strs = str.Split(';');
if (strs.Length == 1)
strs = str.Split(',');
input[index,0] = double.Parse(strs[0]);
input[index,1] = double.Parse(strs[1]);
output[index] = double.Parse(strs[2]);
index++;
}
}
catch(Exception e)
{
Console.WriteLine(e.Message);
}
finally
{
if (reader != null)
reader.Close();
}
}