joecool2005 Posted June 21, 2007 Share Posted June 21, 2007 Hi,I have 15000 files. I want to create a list of file name and a filter with C#.I don't know where to start.Please help!Thx Link to comment Share on other sites More sharing options...
jesh Posted June 21, 2007 Share Posted June 21, 2007 You're going to want to learn about the System.IO namespace:http://msdn2.microsoft.com/en-us/library/system.io.aspxThe DirectoryInfo class is helpful for getting a list of filenames into a string array: DirectoryInfo directory = new DirectoryInfo(@"C:\MyFiles");string[] filenames = new string[0];if(directory.Exists){ filenames = directory.GetFiles();} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.