can't read from file

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

  1. serbov macrumors newbie

    Joined:
    Jul 22, 2008
    #1
    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!
     
  2. serbov thread starter macrumors newbie

    Joined:
    Jul 22, 2008

Share This Page