fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication1
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string[] FILES = System.IO.Directory.GetFiles(@"C:\test", "*", System.IO.SearchOption.AllDirectories);
  14. for (int i = 0; i < FILES.Length; i++ )
  15. {
  16. FILES[i] = System.IO.Path.GetFileName(FILES[i]);
  17. Console.WriteLine(FILES[i]);
  18. }
  19. }
  20. }
  21. }
  22.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty