Last active
December 23, 2015 04:19
-
-
Save scorta/6579658 to your computer and use it in GitHub Desktop.
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
// Put all file names in root directory into array. | |
string[] array1 = Directory.GetFiles(@"C:\"); | |
// Put all txt files in root directory into array. | |
string[] array2 = Directory.GetFiles(@"C:\", "*.TXT"); // <-- Case-insensitive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment