Basically i am looping through a Folder using the Directory.GetFiles and For each . My Requirement is to Loop a specific file name first no matter how many files are in the folder, name of the file is almost static so we can target that if needed.
Scenario 1
Folder have files A,B,myfile,D
Loop order = myfile,A,B,D
Scenario 2
Folder have files A,B,G,I,L,myfile,K
Loop order = myfile,A,B,G,I,L,k
order of other files don’t matter, have to have ‘myfile’ loop first, How can i do this ? Thanks in advance
but this would only pick the file “myfile”, and wont pick the A,B,C etc files. Requirement is to loop all files but loop the “myfile” first (in the same loop)