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:-(
Printable View
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?
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.Quote:
Originally posted by JCC
all I get is ofstream stuff.
Don't seem to work under Unix:-(