This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FileManager | |
{ | |
public static void ReadFilesFromDirectory(string path, string searchPattern) | |
{ | |
DirectoryInfo di = new DirectoryInfo(path); | |
FileInfo[] files = di.GetFiles(); | |
foreach (var item in files) | |
{ | |
Console.WriteLine(item.Name ); | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using DirectoryFileOperation; | |
FileManager.ReadFilesFromDirectory(AppDomain.CurrentDomain.BaseDirectory, "*"); | |
Console.ReadLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DirectoryFileOperation.deps.json | |
DirectoryFileOperation.dll | |
DirectoryFileOperation.exe | |
DirectoryFileOperation.pdb | |
DirectoryFileOperation.runtimeconfig.json |
Yorumlar
Yorum Gönder