First off, you are always inputting the data into the first element in DMArray,... you will need to change the DMArray[0] to DMArray[i]. I'm assuming the DMArray is of type double? What you can do is use a temp string to input it, then convert the string to double.
Like so:
1 2 3 4 5 6 7 8 9 10 11
string temp = " ";
if (myfile.is_open())
{
for (int i = 0; i < SIZE && myfile.good(); i++)
{
getline(myfile, temp);
DMArray[i] = atof(temp.c_str());
cout<<DMArray[i]<<endl;
}
myfile.close();
}