add file to program?

Discussion in 'Mac Programming' started by bravens52, Mar 5, 2010.

  1. bravens52 macrumors regular

    Jul 16, 2009
    hey guys im a computer science student and for are program this week we have to download a .txt and place it in our program. I email my teacher and she said i have to place the file into my build folder. I wanted to know how i do that with xcode. Its only letting me save in the project folder.
  2. HiRez macrumors 603


    Jan 6, 2004
    Western US
    Put it in the Resources folder, it will automatically get added to the project bundle during the build phase. How did you want to use that file though, is it a file your app loads programatically? It won't be in a location that is directly user-accessible in the Finder (well, it is, but not easily).

Share This Page