C Programming on the Mac L36 - Reading Files

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,476
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 27, 2010

An introduction to reading files into your programs.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (AppleProgramming)

  • I have Xcode 4.2.1, where does it run the program from on that version? It doesnt work to type "../../Data", neiter just "Data"..

  • @paraglidingtom You can now download the source code for this project at github.c_om/lucasd2 (without _). Just download the zip of the AppleProg-C-Tutorials repository.

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • Hi Lucas, i've used this method but when i archive the app and install it on another computer it still looks for my data file at the path i typed in and not in the bundled file. Is there a way to connect to the bundled file?

    Thanks, these tutorials are so helpful!

  • @iBig13 You could also just make the data file called Data and make that the location (without the ../../). That way you could just put it with your program

  • @iBig13 I believe it would work if you put it Build folder. Let me know what happens.

  • @iBig13 Actually yes, and I absolutely dread how they did it. It's in the most hidden folder, but here it goes:

    username/Library/Developer/Xco­de/DerivedData/your_project_na­me/Build/Products/Debug/your_p­rogram

    You may want to add that area to the sidebar :D

  • Thank you. More practices on pointers will be more helpful for me (computer network and system programming).

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more