Archive for June 4th, 2008
c# getting a list of files from a directory
by brian on Jun.04, 2008, under .NET, c#, coding
Here’s how to get an array of file descriptors (name and other information).
System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(Program.DataDirectory);
System.IO.FileInfo[] files = di.GetFiles("*.txt");
c# getting the application directory.
by brian on Jun.04, 2008, under .NET, c#, coding
Getting the directory that the application is in at run-time is nice. Here’s the code.
string appDir = AppDomain.CurrentDomain.BaseDirectory;
