Here is what I want to do, there are folders called UserData(x) where (x) is there is a number. They are named UserData1 Userdata2 Userdata3 etc. up to 7 / 8 normally.
However I want to be able to work out how many directories there are with these names, so I can create a new one with a name 1 number higher than the existing highest.
eg. if the higher one was called UserData8 I would create UserData9 with my program.
I know about creating directories, but I need a bit of help with the first bit, and adding the number to the directory name.