ive got a loop that runs in the background. at the same time I need the program to register inputs by the user, and have the code react if any input happens. can I somehow do this?
So from a snippet like this-
string input = "";
while(true)
{
Console.WriteLine(input);
}
input = PermanentReadLine();
id expect it to change what it writes to the screen whenever i write anything into the ReadLine