I have this code in a snippet I'm modifying :
For Each s in Directory.GetFiles(Server.MapPath(IMAGE_DIRECTORY), "*.jpg")
It works fine, but 's' returns a new filename each time around the loop. Is there some construct to tell me the index ?
I don't care if the index is 0-based or 1-based. I can write the code to do it manually, but is there anything built in to .Net to provide this ?
TIA...