|
-
January 15th, 2009, 10:39 PM
#1
How to convert from ofstream to CFile
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();
}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|