!7 p-exp { FileOutputStream fileOut = newFileOutputStream(print(programFile("log.txt"))); System.setOut(teePrintStream(System.out, fileOut)); System.setErr(teePrintStream(System.err, fileOut)); repeat with sleep 10 { print("Yo"); } }