Hello. I would like to write the output of a console program to a text file.
In general, I know what commands to use. The problem is that the result is always saved after the program executes. So the result is buffered, the program executes and then the whole log is saved.
And I would like the log to be saved "live" without buffering the text (result).
In general, I know what commands to use. The problem is that the result is always saved after the program executes. So the result is buffered, the program executes and then the whole log is saved.
And I would like the log to be saved "live" without buffering the text (result).