im using MVC++ and i get errors. This worked on my old compiler but not MS's. What am I doing wrong here? ThanksCode:#include "iostream.h"
#include "fstream.h"
#include "stdafx.h"
int getdir();
int getdir()
{
int i;
ofstream out("C:/Matt/text3.txt");
if(!out) {
MessageBox(NULL,"Cannot open output file","Error",MB_OK);
return 1;
}
for(i=0;i<256; i++) out.put((char) i);
out.close();
return 0;
}
