I'm trying to get a word from a label and compare it to an text file, but for some reason I get "no" for a response no matter what i do. is there something wrong with the code.
wordS1 = [[NSBundle mainBundle] pathForResource:@"c" ofType:@"txt"];
wordS2 = [NSString stringWithContentsOfFile:wordS1 encoding:NSUTF8StringEncoding error:nil];        
wordArray = [wordS2   componentsSeparatedByString:@"\n"];
for (compare = 0 ; compare != 58; compare++) 
{
    if ( [word.text isEqualToString:[wordArray objectAtIndex:compare]]) 
    {
        NSLog(@"Yes");    
    }
    else
    {
        NSLog(@"No");
    }
}