The only Convert.ToDouble overload that matches is the one that receives Object. This function, like all the other ToDouble overloads, returns double.
public static double ToDouble(
Object value
)
You are therefore attempting to assign a double to a double[] and the compiler tells you that it cannot do so.
Of course, if you ever did pass your string[] array to that Convert.ToDouble overload it would fail with a runtime error because Convert.ToDouble expects to receive a single value, and return a single value. It simply does not convert multiple values in a single call.
What you need to do is convert each line from the file into a double. An effective way to do that would be to use a Linq query as demonstrated by various other answers.
Convert.ToDoublethat takesdouble[]as a parameter. You might need to read your text file line by line and try to parse each value..Select?