If the string includes the file location, this is as simple as:
1. Open the file and read the line to $MyStr
2. If Exist($MyStr) ...

Am I missing something?

NMM