["$ directory..H$ ","!9gets files in directories","ERHUwHHR8R7;HR8R7.IORIR9R+H{HER$E{wHEERcPut all file namesRSroot directory Rbo RL.HEEwR?[] RL1R_wDirectory.GetFilesw(@UC:\\U);wHHEERcPut all bin filesRSroot directory Rbo RL.HEER1This is case-insensitive.HEEwR?[] RL2R_wDirectory.GetFilesw(@UC:\\U, U*.BINU);wHHEERcR. all files.HEEwR%wU--- Files: ---Uw);HEER2 (R? nameRSRL1)HEE{HEEER%name);HEE}wHHEERcR. all BIN files.HEEwR%wU--- BIN Files: ---Uw);HEER2 (R? nameRSRL2)HEE{HEEER%name);HEE}HE}H}HHwHH--- Files: ---HE(All filesRSyour C:\\ folder)H--- BIN Files: ---HE(All .bin, .BIN filesRSyour C:\\ folder)w","A(DEAB/BXC| 996464}(BBCE(XCEEE.BXBX","Directory.GetFiles"," returns the file names in a folder. It is found in the System.IO namespace. It returns a string array\u2014this contains the full paths of all the files contained inside the specified directory. ","String Array ","array","Example."," You must include the System.IO namespace with a using directive at the top of your file, or use the fully qualified name System.IO.Directory.GetFiles type. The example program here uses the C:\\ directory. ","It filters the files in that directory and only displays the ones with the \"BIN\" extension.","A static method."," You do not need to create a Directory instance to use it. The first parameter to the method is the directory path. In a Windows Forms program, you can use Environment.SpecialFolder and FolderBrowerDialog. ","Environment ","environment","FolderBrowserDialog ","folderbrowserdialog","In ASP.NET, you can use Server.MapPath or the Request.PhysicalApplicationPath property.","MapPath ","mappath","Next,"," the second parameter uses the pattern \"*.BIN\". You have seen these patterns in the \"Open File\" dialogs in Windows before. The pattern string is case-insensitive, meaning it will match files ending in \"BIN\", \"Bin\" and \"bin\".","Discussion."," You can get a List collection of the file paths in a directory. To get the List, you will use the same method calls as in the code example. However, you can convert the arrays to Lists with the ToList extension method. ","Include the System.Linq namespace at the top first\u2014it is included by default in new files.","ToList ","tolist","Convert List, Array ","convert-list-array","List ","list","Recursively scan folders."," Often you will need to get the list of files in a certain directory, and then scan all subdirectories in the folder. There are several ways to accomplish this task, including using true recursion. ","Recursive File List ","recursive-file-list","Performance."," Directory.GetFiles is fast when used on small directories with few files. But for large directories, with thousands of files, Directory.EnumerateFiles is faster. A benchmark of these methods is available. ","EnumerateFiles, GetFiles Benchmark ","directory","Summary."," We saw the Directory.GetFiles method, which will return the list of files in a specified directory on your hard drive, using the C# language. We tested the method on the C:\\ root directory, and discussed issues related to its usage."]

%iVBORw0KG;)NSUhEUg?ALw?AByC)ADMwOSz?ACe0lEQVR4Xu3csY7kMAgG4Lz/86Wkp6ZAokDy6RTfodVsTDSaxPy7/uux9a0LZpkEb20YNzNVEWYmItr/hYiYWcS8Tcw2cKv8DTPtoxCzqFfC+wGXgCchYlGvgDfp9MBd/xNsIj7otL8XHwC8x14Sq04/Yine4tRvwEvP6ypqPXp+dgneY+nbaZPwHscOh7eww+HDjoL/uJ1m4D3scPjYFw8fawDxUWjw8LErFP7TB7/z0/jYFA8fB4+Il1iQh47UwF:fvrfLPV/t0WEj+52Ev5yjWc96y/MNNrdR/EX6yRZuxb3Z/Ge10lu1/MsPm9auZXFS09iL4n3DE+tLD5vQrQsPi+U1ArjJcELAv7Og/eeAT4+cor3r2lbVPk7Sk30ODeEt3R/QcZ7YXxWbKgB47kyPis2;y3ynhP8K00frw9lcbbD8bz3fiFJ0S8jvEyCb/wioy30nhZ+Kz/Mz3CPa8S0h7hI9+AtMeOeIb3cBRswGO7UviFfwO48Au/8Au/8OhfUgu/8EkzUhqvNfELr8h4+cV477EuGvSw0sPnPaz06BHbDOJHp/UrMf6TkYVfD9RagndkvCI/vpfSeAN+9yDbn0rjPdnfEPCC+JpWS/BUGJ8PGWldfH46XBifzy1oXXw+qkOF8dE1wr2Cful4uC7epQdu7OLimBRpRfzlmkDiw1kjNRFmmjehto9DLJZNeT2P1zfG66jKbKAjDzbGCkS8Iw/zxhJAfGyLiI9aj4iPRYg3ToQeEB87EyLepQcLnyzEwIceER8VEwT/6fu0JuKDzwSA/yifWGbhIxb+y2wWm9DDJnc+UtE7HwOfXOT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