C
C#5mo ago
SuperChlorus

Saving all previous console output

Is there a way to save all previous console output so that i can write on a blank console and then when the program ends the previous console output will be displayed again? https://stackoverflow.com/questions/78829619/how-do-you-save-previous-console-output if you want to answer here (I posted here because I dont think theres a point now going on stackoverflow)
9 Replies
Pobiega
Pobiega5mo ago
I'd probably just write a wrapper around Console.Write/WriteLine that also stored in a buffer
SuperChlorus
SuperChlorusOP5mo ago
Im not sure I understand you correctly, are you suggesting to create a new function which has string message as a parameter and it prints the message and stores it in a seperate place?
Pobiega
Pobiega5mo ago
pretty much
SuperChlorus
SuperChlorusOP5mo ago
I do want to keep output from previous programs that will also run is there no other way?
Pobiega
Pobiega5mo ago
not as such, no
SuperChlorus
SuperChlorusOP5mo ago
or at least create a temporary new console and link it
Pobiega
Pobiega5mo ago
you cant read data from stdout
SuperChlorus
SuperChlorusOP5mo ago
oh, thats unfortunate thank you anyways
Pobiega
Pobiega5mo ago
np
Want results from more Discord servers?
Add your server