View Single Post
  #1  
Old 08-25-2009, 11:28 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
Read Files in the order of creation date

I have a folder containing some sql files and I need to read these files one by one and add their content into a single file name update.sql
In order to achieve this I used a “Process files “ step which will find all the SQL scripts ,read them and write them into update.sql
I attached a sample of the project
Now a new requirement appeared –to read and write sql scripts in the order of creation date .
So based on file creation date –I need to take the oldest file and write it into update.sql ,then the next one created and so one.
I think the process file step take the files in random order ,is there any way to change that ?
Or how can I achieve such a thing to be done ?
Problem is when I look at the file properties –more relevant seems to me “Modified” section than “Created” section as it is older.
Thanks for any help
Attached Files
File Type: bld createupdatesql.bld (2.7 KB, 1120 views)
Reply With Quote