Check whether a file exists in Objective C

By | February 26, 2011

“fileExistsAtPath” is used to check whether a file exists or not at a specified path.

           if ( [theManager fileExistsAtPath:theFilePath ] ) {
                // File exists......
            else {
                 // No file in this path.....

2 thoughts on “Check whether a file exists in Objective C

  1. Brianna Massarelli

    Hiya! I just wish to give a huge thumbs up for the great info you’ve got here on this post. I can be coming back to your weblog for extra soon.

    1. James

      Hi Brianna Massarelli >> Thanks for the appreciation. People like you are always welcome.


Leave a Reply

Your email address will not be published. Required fields are marked *