Hi ,
I want to load and count only those Flat files which filename contain %vendor%.
like
abc_vendorpic.csv
Hist_vendor_20150825.csv
public void Main()
{
string TheSource = Dts.Variables["$Package::VendorItem_FilePath"].Value.ToString();
string[] files = Directory.GetFiles(TheSource, "VENDOR*.csv", System.IO.SearchOption.TopDirectoryOnly);
Dts.Variables["User::V_Filecount"].Value= files.Length;
}
and same file should load in for each loop container.
what to change in above code .