How do I find a text file created by a website to generate output

tamashy:
So this website that runs from the sd card creates a text file in itself and then I have the arduino look for it to do things.
So basically I have a nested SD finder: Here is the part of the code im trying to debug.

What's your underlying goal with this? As far as I can see, the first code snippet is part of a document that could be served out by a web server but it has nothing to do with the web server saving files locally. You don't say which file you're talking about but I guessed it's alarms.txt - I don't see any code to create that anywhere. Nor is it obvious why you want to save the file locally and then go look for it, rather than just carry out whatever action is implied by the file directly during the HTTP request. Perhaps if you explained the purpose behind all this i.e. what behaviour you're trying to achieve, we can suggest how to achieve it.