Does anybody know of a way to determine where stdout is pointed to?
I have tried looking at the system properties but stdout and stderr are not
part of the properties. I am working in an environment where the user can
specify the location of stdout. What I would like to do is if the user
specifies one location, I would use print and for another location, I would
use println.