c# foreach loop te get all files in folder code example
Example: c# loop through files in folder
string[] files = Directory.GetFiles(txtFolderPath.Text, "*ProfileHandler.cs");
string[] files = Directory.GetFiles(txtFolderPath.Text, "*ProfileHandler.cs");