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