I have project that converts a pdf to tif image files. And the out put files are numbered in the form. file1, file2, file3.......file20. When I do the code below to get the files, they are arranged in the list as shown below which is not correct. Any ideas how to go around this?
FileInfo[] finfos = di.GetFiles("*.*");
finfos[0]=file1
finfos[1]=file10
finfos[2]=file11
finfos[3]=file12
....
...................
finfos[4]=file19
finfos[5]=file2
finfos[6]=file20
finfos[7]=file3
finfos[7]=file4