Arranging the created text files using FILEX in latest first manner

I am generating .txt files in a folder on a sdcard using FILEX. The problem is all the files created have a same timestamp of 01/01/2017. I had to create this files such that the latest file remains at the top of the folder while the oldest goes down automatically. It is same as sorting the folder by date in windows. How can i do it?. Can anyone help

 

Parents
  • you can set the date and time for the files by using the code

    fx_system_date_set ((UINT) ((g_system_time.tm_year - 100) + 2000), (UINT) g_system_time.tm_mon + 1,
                            (UINT) g_system_time.tm_mday);

    fx_system_time_set ((UINT) g_system_time.tm_hour, (UINT) g_system_time.tm_min, (UINT) g_system_time.tm_sec);

Reply
  • you can set the date and time for the files by using the code

    fx_system_date_set ((UINT) ((g_system_time.tm_year - 100) + 2000), (UINT) g_system_time.tm_mon + 1,
                            (UINT) g_system_time.tm_mday);

    fx_system_time_set ((UINT) g_system_time.tm_hour, (UINT) g_system_time.tm_min, (UINT) g_system_time.tm_sec);

Children
No Data