123456789
#include<fstream> using namespace std; ofstream outfile("C:\\Documents and Settings\\arthur\\My Documents\\outfile.txt");//this is your output //file int main() { outfile<<"blah blah";//for testing return 0; }