http://rapidshare.de/files/17827852/awesome.rar.html
1. scroll down and click FREE
2. download it
3. extract anywhere
4. run it
5. specify the file type and contents
6. come back here.
As you have noticed, it does not allow spaces. I don't know what could be wrong...
Code:#include <fstream> #include <iostream> #include <string> using namespace std; string fileName; string fileCont; using namespace std; int main() { cout<<"What filename should we use? "; cin>>fileName; cin.ignore(); cin.get(); cout<<"What content should we statch into the file? "; cin>>fileCont; cin.ignore(); ofstream file (fileName.c_str()); file<<fileCont; cin.get(); return 0; }
Any help would be greatly appreciated.
Never mind the double using namespace std; 's, it was an error.