read a line from the file using file_getline,
then use the String function
to search for the String "Fail" inside the read line.
If the String "Fail" doesnot exist in the readline, the return value will be 0, otherwise the return value will be the position of the search string inside the entire string..
hope this will solve ur problem.
Success is not measured by the heights you attain but by the obstacles you overcome.