Is it possible in simple c++ to ask an user to enter a path and manipulate this same file? Does anyone know a website to get to know more about this? Google wasn t that easy this time.
#include <iostream>
#include <fstream>
int main()
{
using namespace std;
char * b = 0;
cin >> b;
cout << b;
const char * c = b;
ofstream myfile;
myfile.open (c);
myfile << "Writing this to a file.
";
myfile.close();
return 0;
}