From: Geoffrey K. <ge...@kn...> - 2006-04-22 23:44:27
|
I'm running a command and I'd like to capture the output in a string. For example: (out (run (cmd (wc -l ,filename)))) I tried wrapping a ByteArrayOutputStream in a PrintStream, but that didn't seem to do anything. Geoffrey -- Geoffrey S. Knauth | http://knauth.org/gsk |