Possible Duplicate:
Edit text in C# console application?
I want to prompt the user to enter a string via the console using Console.ReadLine()
but I want to pre-populate a string that they can then accept, append, or delete and enter a new one.
Something like:
Console.WriteLine("Enter Directory:");
Console.Write(@"C:\Temp\");
var input = Console.ReadLine();
This obviously doesn't work because they can't delete C:\Temp
and enter their own directory (and also the input doesn't contain C:\Temp\
).
Is there a way to do what I want?