Sign Up Now!Log In
Micah 8/15/2011 2:15:02 PM

Processing all the files in a folder

A common integrtion task is to scan all the files in a folder and process them.

This code sample shows how to read all the files in a directory and get the file name and the full file path and name. This code uses the System.IO.DirectoryInfo and System.IO.FileInfo objects.

We also get the directory to scan from the app.config file using System.Configuration.ConfigurationManager.AppSettings("directoryName")

Version: Unknown or N/A
Section: .NET Development