Help with File Manipulation
I want to read in a list of files in a directory then use that list to copy from that location to another.
Here is what I have so far.
How do I now copy from the list of files in the "dirs" string to another location?
using System;
using System.IO;
class MonthlyMove
{
static void Main()
{
string[] dirs = Directory.GetFiles(@"c:\TEST\Master");
foreach (string dir in dirs)
{
Console.WriteLine(dir);
//File.Copy(@"C:\TEST\Current_Month\file1.txt", @"C:\TEST\Previous_Month\AnotherFile.txt", true);
}
}
}