Skip to content
samirahmed edited this page Feb 15, 2013 · 1 revision

Input

Prompt the user of the directory and the file name

> directory: C:\Users\Samir\Desktop\Myfiles
  prefix: image

Output

> printed Order.txt
> printed Check.txt

Shuffling

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

Check.txt

sorted by filename

imageASJFABEKAO.png:3
imageASKJFALIEX.png:2
imageXXNAIKIJAL.png:0
imageOEKXQECXAD.png:1

Order.txt

Sorted by order

0:imageXXNAIKIJAL.png
1:imageOEKXQECXAD.png
2:imageASKJFALIEX.png
3:imageASJFABEKAO.png
Clone this wiki locally