The following CSharp Code(just sample):
Console.WriteLine("Searching file in...");
foreach(var dir in DirList)
{
Console.WriteLine(dir);
}
Prints Output As:
Searching file in...
dir1
dir2
dir3
dir4
.
.
.
Question? How can I get the output as
Searching file in...
dir1
(then clear dir1 and print dir2 and so on)All next dir name wiil replace the previous dir