I have a function to translate the current text string using the Free Bing translator API. I just want to make sure if anything fails or something happens with the Applicat
You can do like this
if(@file_get_contents("yourFilePath.txt")){ echo "success"; }