From: Geoffrey K. <ge...@kn...> - 2006-04-23 07:19:10
|
That worked perfectly. Thank you, Sir! --Geoffrey On Apr 22, 2006, at 22:13, Timothy John Hickey wrote: > You need to create a StringWriter object w, > wrap it in a PrinterWriter object p, and pass that object as the > second parameter to the "out" method. > Invoking .toString on the w object will give you your string.... > > Here's an example... > > > (define w (java.io.StringWriter.)) > > > (out (run (cmd (ls -l "."))) (java.io.PrintWriter. w)) > 0 > > (display (.toString w)) > total 155416 > drwx------ 45 tim tim 1530 22 Apr 09:56 Desktop > drwx------ 67 tim tim 2278 18 Apr 07:58 Documents > drwx------ 44 tim tim 1496 10 Apr 17:47 Library > drwx------ 6 tim tim 204 1 Apr 19:49 Movies > drwx------ 5 tim tim 170 30 Jan 2005 Music > drwx------ 4 tim tim 136 7 Jan 20:08 Pictures > ---snip--- |