#include <iostream>
#include <fstream>
using namespace std;
int main () {
ofstream outfile ("c:\windows\system32\test.txt");
if (outfile)
{
cout << "it works";
}
cin.get();
return 0;
}
Well, I am trying to create a file in the c:\windows\system32 path. I have googled and it basically told me to do this, but it doesn't seem to be working. I have UAC disabled. I am running windows 7 Ultimate 64-bit.