net core loop on file content from directory 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");