Saturday, June 1, 2013

Get List of all files From Folder C#

string fullpath="Full path";


DirectoryInfo dirInfo = new DirectoryInfo(fullpath);
FileInfo[] fileInfo = dirInfo.GetFiles("*.*", SearchOption.AllDirectories);

No comments:

Post a Comment

Complete Authentication System in ASP.NET Core using JWT

JWT (JSON Web Token) authentication is widely used for securing APIs in modern applications. In this article, we will build a complete authe...