Instead of printing out the results on the screen, how do you dump the contents of buffer to a file in C++ (Unix env)? I've searched for examples on the net...but all I get is ofstream stuff.
Don't seem to work under Unix:-(
Instead of printing out the results on the screen, how do you dump the contents of buffer to a file in C++ (Unix env)? I've searched for examples on the net...but all I get is ofstream stuff.
Don't seem to work under Unix:-(
ofstream::write?
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
In VC++ 6.0, there are project settings which allow you do do that in the debug version.
Do you mean that ofstream doesn't work in unix for you? Can you post the code you're trying to use? Perhaps you're just doing something wrong.Originally posted by JCC
all I get is ofstream stuff.
Don't seem to work under Unix:-(