To search file name with filter criteria in c#

Jitendrasoft09
Posted by Jitendrasoft09 under C# category on | Points: 40 | Views : 965
using System;
using System.IO;

class JkExample {

static void Main(string[] args) {

string[] filteredNames = Directory.GetFiles(@"C:\", "jitu*");

foreach (string name in filteredNames) {
Console.WriteLine("Name: {0}", name);
}


Console.ReadLine();
}

Comments or Responses

Login to post response