+ 3

how files are stored in sorted order in a directory.

how can store files in sorted order in a directory I need to use files because data changes and in between i may need to terminate my program.

23rd Feb 2018, 7:34 AM
shobhit
shobhit - avatar
3 Answers
+ 1
start the file name with number 000001, then 000002 and goes that way..
25th Feb 2018, 12:53 AM
David Borges Reis e Silva
David Borges Reis e Silva - avatar
+ 1
or time stamp your files
25th Feb 2018, 12:55 AM
David Borges Reis e Silva
David Borges Reis e Silva - avatar
- 1
In dictionary order
2nd Mar 2018, 11:04 AM
GAUTAM KUMAR
GAUTAM KUMAR - avatar