Possible Duplicate:
How can I update the current line in a C# Windows Console App?
What i mean is that i have a for in a for loops.
For (x=0; x<this.Length;x++)
{
for (y=0; y<this.Length;y++)
{
Console.WriteLine("Working on file " + images[x] + " please wait");
}
}
The line Console.WriteLine(“Working on file ” + images[x] + ” please wait”);
Will write in the console window each images[x] file line under line.
I want that it will write it once and then overwrite the same line and so on.
Not line under line . Like counting “Working on file 0001 please wait”
Then next line will replace the same one “working on file 0002 please wait”
I tried to put Console.Clear(); after the Console.WriteLine but then its like blinking doestn work smooth.
Instead of using
WriteLinewhich writes a carrage return and a line feed, only write the carrage return. That places the cursor at the beginning of the line, so that next line it written on top of it: