Hello,
I'm writing a failry basic console app. The essence of the code is that it loops through some values and asks the users to enter some data. To save the user having to type the same thing over and over again and have created mechanism where if they type '1' for example it will pre populate the console.
I do this by using this:
The user can add some further text or just click enter to move on. This works well from an interface point of view, however a major problem is that I need to capture this value.
I do this by:
The problem is this is only capturing new text that is typed by the user, not the text thats been put there by the write() method.
Any suggestions how I can capture all the text please.
Thanks.
I'm writing a failry basic console app. The essence of the code is that it loops through some values and asks the users to enter some data. To save the user having to type the same thing over and over again and have created mechanism where if they type '1' for example it will pre populate the console.
I do this by using this:
1:
console.write("some text")
The user can add some further text or just click enter to move on. This works well from an interface point of view, however a major problem is that I need to capture this value.
I do this by:
2:
string strValue = Console.ReadLine();
The problem is this is only capturing new text that is typed by the user, not the text thats been put there by the write() method.
Any suggestions how I can capture all the text please.
Thanks.