Files in folder
C#
2
Posts
2
Posters
0
Views
1
Watching
-
i have a folder inclodes some files how can i read the file name from this folder thankis for help
MD_NADA
-
i have a folder inclodes some files how can i read the file name from this folder thankis for help
MD_NADA
You can use DirectoryInfo and FileInfo Class and then use getfiles method of directory ojbect to get all the files inside a particular directory. You can also use to to get a particular kind of file
DirectoryInfo dir = new DirectoryInfo(@"d:\skypak\text"); FileInfo[] bmpfiles = dir.GetFiles("*.txt");