Hi all,
I'm a newbie in C++ and I have a problem converting this ofstream codes to CFile..
Anyone can help me?

void CCTImageDoc::WriteToFile(double* arr, int Cnt, char *fName)
{
ofstream fout(fName);
for (int i=0; i<Cnt; i++)
{
fout<<arr[i]<<endl;
}
fout<<flush;
fout.close();
}