I want to read in an indeterminate number of double values from a file into an array, I created the double array with :
<code>

#include <Afxtempl.h>
typedef CArray <double, double> CDoubleArray;

CStdioFile data;
CDoubleArray datarray;

data.Open("datafile2.txt",CFile::modeRead|CFile::shareExclusive);

<code/>

Can anyone take it from here? The file looks ".23 .44 .32..."
here is what I was doing before with a C style IO but I need to use MFC now

<code>

#include <Afxtempl.h>
typedef CArray <double, double> CDoubleArray;

CDoubleArray datarray;
CFile * data;
double tem;
data = fopen("datafile2.txt","r");

while(fscanf(data,"%lf",&tem) != EOF)
dataarray.Add(tem);

<code/>