[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

c++ query



Hi,

Is there a way to close the standard output and reassign cout to point to a
file.
( What I want to do is give an option to the user, if a file name has been
specified output should be written to the file else to the standard output;
and the user will be using cout )

Thanks in advance