It sounds as if you just need to iterate through files in a directory.
Here is an example of that:
using System;
using System.IO;
namespace DW_FileLoop
{
class Program
{
static void Main(string[] args)
{
string strRootDir = @"C:\Users\Mark\Documents\VoteResults2";
string[] arr_strFiles = Directory.GetFiles(strRootDir, "*.xml");
foreach (string strFile in arr_strFiles)
{
Console.WriteLine("Processing: " + strFile);
//Call XML Processor here.
}
}
}
}
Reputation Points: 304
Solved Threads: 277
Posting Virtuoso
Offline 1,697 posts
since Oct 2009