|
In Psuedocode, it would be something like this (if I am understanding what you are trying to do)
loop:
Get fileName as a string.
create a new String s = fileName.substring(0,2).
see if s.matches ("[1][0]").
if it matches, then do action based on finding a valid filename.
Or you could do it this way:
Get fileName as a string.
Loop from 0 to 1
See if charat(0) is a 1, if true, then see if charat(1) is a 0.
If the chars match, then do action based on valid file name.
Does that help any??
|