I have simple command line application, and I want to store commands typed in between starts of program.
Storing alone is not problem, I know how to do it, but how I can restore it?
Console
class don't have any method for setting history, if I press up arrow on start of application it is empty.
Methods from msdn for unmanaged code are not helpful for me, good answer could show me how to use them in c# to get what I need.
My idea is to override up arrow with ReadKey
only and do it "hard" way but if there is easier way I would be glad.