I am trying to create a program that reads the folders inside the main directory and for each folder read each file (PDF) then move on to the next folder.
The code below is where i declare strings and start with a foreach statement.
string input_Path = @"C:\Users\username\Desktop\testinp\";
string output_Path = @"C:\Users\username\Desktop\testinp\output\";
string[] dirs = Directory.GetDirectories(input_Path, "*", SearchOption.TopDirectoryOnly);
string[] files = Directory.GetFiles(input_Path, "*.pdf");
foreach (string dir in dirs)
{
string dirName = dir;
}