How can I store what is on the terminal (console) as a string in Nim?
For example, let's say my console is showing this:
Success: Execution finished
Success: All tests passed
(base) piero@Somebodys-MacBook-Pro Tests %
I want to store that as a string to a variable.
How can I achieve that?
In bash, it may be achieved by something like this:
ls -ltr > ./output.txt