NSString from .txt file
NSString from .txt file
- Subject: NSString from .txt file
- From: Shaun Chu <email@hidden>
- Date: Mon, 18 Mar 2002 18:41:03 -0500
I'm using
NSString *path = @"Users/shaun/textFile.txt";
NSString *text = [[NSString alloc] initWithContentsOfFile:path];
to set text to the contents of textFile.txt
Is there a way of accomplishing the same thing without using an absolute
path? In other words I want the textFile.txt to reside in the same folder
as the application and be able to move that folder to any directory without
breaking any path.
Thanks!
Shaun
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.