buffer is a char buffer holding code from a website. It prints it out to cout, and this is visible. However, the file is not written to, neither in line
f << buffer;
nor in line
f << "a" << endl;
This usually works on my machine. No exceptions are thrown in above code. Am I missing something? How can this not be working?
ah, it was the directory delimiters, open() uses "/", not "\". I was hoping an exception was to be thrown so I could get to this easier, but anyay, it worked eiher way :)