I am trying to read variables from a bunch of file names that all have a consistent format like:
filename = string1_useless_float1_useless_float2_ etc, etc
How can I read certain variables from the file name (strings, floating points) while skipping over unimportant text in between? I'm trying to use these variables in another program but I have literally hundreds of thousands of files so doing this by hand is clearly out of the question.
Thank you!
Best Answer