I have a series of files that I'm loading into an array using ADIR (currently the file names are 79420-005MS29AL_0001.TXT, 79420-005MS29AL_0002.TXT, and 79420-005MS29AL_0003.TXT). Once loaded into the array I need to process them. By design there is 'header information' in file #1 (_0001.TXT), but for some reason the ADIR command occasionally puts them in some order other than name ascending. Currently the files are in reverse order (3,2,1), but I have had 2,1,3 and 2,3,1. The file date/time stamps are in ascending order by 1,2,3 and even the file sizes are ascending order by 1,2,3. The obvious solution is to ASORT the array, but why should I need to?
Steve
Steve