-
Notifications
You must be signed in to change notification settings - Fork 0
Specification
samirahmed edited this page Feb 15, 2013
·
1 revision
Prompt the user of the directory and the file name
> directory: C:\Users\Samir\Desktop\Myfiles
prefix: image
> printed Order.txt
> printed Check.txt
Takes files with the given prefix
C:\Users\Samir\Desktop\Myfiles\image01.png
C:\Users\Samir\Desktop\Myfiles\image02.png
C:\Users\Samir\Desktop\Myfiles\image03.png
C:\Users\Samir\Desktop\Myfiles\imageABC.png
Maps the current ordering to a new ordering
image01.png -> imageXXNAIKIJAL.png
image02.png -> imageOEKXQECXAD.png
image03.png -> imageASKJFALIEX.png
image04.png -> imageASJFABEKAO.png
The check.txt file shows the filename and order, colon separated The order.txt file shows the order and filename, colon separated
sorted by filename
imageASJFABEKAO.png:3
imageASKJFALIEX.png:2
imageXXNAIKIJAL.png:0
imageOEKXQECXAD.png:1
Sorted by order
0:imageXXNAIKIJAL.png
1:imageOEKXQECXAD.png
2:imageASKJFALIEX.png
3:imageASJFABEKAO.png