I have a file folder that has files named with numbers such as 1.jpg. 2.gif 3.jpg 4.jpg
I need a method to get the greatest numbered file so I can continue adding additional files having the next number.
Is there any easy way to get the largest number file without having to loop through each file and check the names. Perhaps some way to sort by name and grab the greatest number and return that number?
I need a method to get the greatest numbered file so I can continue adding additional files having the next number.
Is there any easy way to get the largest number file without having to loop through each file and check the names. Perhaps some way to sort by name and grab the greatest number and return that number?