Check out example codes for "c# loop through files in folder". It will help you in understanding the concepts better.

Code Example 1

string[] files = Directory.GetFiles(txtFolderPath.Text, "*ProfileHandler.cs");

Learn ReactJs, React Native from akashmittal.com