problem with console writeline
when i run the program its printing all the filenames fine but not the number before each file (count1)

5 Replies
you aren't using Console.WriteLine correctly
you should be building your whole string using string interpolation, not just the count part
Console.WriteLine($"{count1}. {Path.GetFileName(file)}");
is that better
try it
yh it works
thanks
Also you can just use
count1++;
to increment by 1