How to read each files in folder one by one

There are several files in the folder that need to be read in turn. for each reads the same file several times, how to fix it so that each file is read in turn.

Read Files from Folder:-

  1. Directory.GetFiles(“FolderPath”) will gives you list of files in the folder.
  2. Now if you loop , Whatever files present in the folder will get read .

Can you please tell your requirement to help further

1 Like