I'm trying to catch the output from for example: print('Hello') and store it in a variable / table.
Please let me know if this is even possible. If not thanks for answering.
I'm trying to catch the output from for example: print('Hello') and store it in a variable / table.
Please let me know if this is even possible. If not thanks for answering.
You can't intercept standard output directly, but you can change the global
printfunction:I'm not sure if there's a way to deal with
io.writecalls.