Is there any way to delete the last character from the console, i.e.
Console.WriteLine("List: apple,pear,");
// Somehow delete the last ',' character from the console.
Console.WriteLine(".");
// Now the console contains "List: apple,pear."
Sure, I could create a string first then print that to the console, but I'm just curious to see if I can delete characters directly from the console.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…