Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

serbov

macrumors newbie
Original poster
Jul 22, 2008
2
0
I have some code:
[src]
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *path = [documentsDirectory stringByAppendingPathComponent:mad:"example.txt"];

NSString reValS;
NSInteger retVal;
retVal = [@"2" writeToFile: path atomically:YES];
[/src]

it's write to file value =2 ; but I can't find anywhere - how can I read this value to reValS?

thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.