I need to test if a file exists, but the file name takes the form data_[random numbers].txt
Does anyone have any suggestions?
I need to test if a file exists, but the file name takes the form data_[random numbers].txt
Does anyone have any suggestions?
You may be able to use [man]glob/man, checking if any filenames are returned in the resulting array.
Thank you...this worked perfectly.
btw, congrats on post 7k
Don't forget to mark this thread resolved.