Hey guys I need some major help. I am trying to find a way to do this:
I can't seem to compile this. Could you guys tell me what I am doing wrong?Code:#include <iostream.h> #include <string> #include <fstream.h> using namespace std; int main() { string name = "whatever"; ofstream goingOut("C:\\windows\\desktop\\"name".txt"); goingOut<<"Hello I need some help!"<<endl; return 0; }
Thanks,
Machewy