can't read from file

Discussion in 'Jailbreaks and iOS Hacks' started by serbov, Jul 22, 2008.

  1. serbov macrumors newbie

    Jul 22, 2008
    I have some code:
    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];

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

  2. serbov thread starter macrumors newbie

    Jul 22, 2008

Share This Page