Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get All File Names from a Directory

using System;
using System.IO;

namespace get_all_files
{
    class Program
    {
        static void Main(string[] args)
        {
            // All files from directory "C:File"
            string[] files = Directory.GetFiles(@"C:File");
            foreach (var file in files)
            {
                Console.WriteLine(file);
            }
        }
    }
}
 
PREVIOUS NEXT
Tagged: #Get #All #File #Names #Directory
ADD COMMENT
Topic
Name
4+8 =