I'm very unsure about what I'm doing here, the book I'm learning from doesn't give much explaination. Here's the code.
int mode=ios:: out;
fstream flout(filename, mode );
cout<<"ready for input:use control-z to end.";
fout.put( ch );//:confused: