Rebind the output stream cout to a given file.
returnedOstream = coutreset(fileNameStr)
returnedOstream - type: ostream
fileNameStr - type: string
In VisualText, a way to bind where outputs to cout() are sent.
@CODE
# In VisualText, output to a file. Outside VisualText, output to user-supplied stream.
if (interactive())
coutreset("out.txt");
cout() << "Hello output stream!" << "\n";
@@CODE