Importing from a file Xcode

Discussion in 'Mac Programming' started by MacDonaldsd, Mar 29, 2006.

  1. macrumors 65816

    MacDonaldsd

    Joined:
    Sep 8, 2005
    Location:
    London , UK
    #1
    Im using C++ on xcode, and I need to read from a .txt file

    Where do I put the .txt file in the project ?
     
  2. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #2
    What's the .txt file for? Is it source code or is it a resource?
     
  3. thread starter macrumors 65816

    MacDonaldsd

    Joined:
    Sep 8, 2005
    Location:
    London , UK
    #3
    Its just raw data, a column of strings and a column of ints
     
  4. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #4
    It probably goes in the resources folder then...well it would in a Cocoa program. Not sure it goes there in a C++ program - never written a C++ project in xcode so I don't know.
     

Share This Page