C
C#3mo 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
Pobiega3mo ago
I'd probably just write a wrapper around Console.Write/WriteLine that also stored in a buffer
SuperChlorus
SuperChlorus3mo 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
Pobiega3mo ago
pretty much
SuperChlorus
SuperChlorus3mo ago
I do want to keep output from previous programs that will also run is there no other way?
Pobiega
Pobiega3mo ago
not as such, no
SuperChlorus
SuperChlorus3mo ago
or at least create a temporary new console and link it
Pobiega
Pobiega3mo ago
you cant read data from stdout
SuperChlorus
SuperChlorus3mo ago
oh, thats unfortunate thank you anyways
Pobiega
Pobiega3mo ago
np
Want results from more Discord servers?
Add your server