I'm loading a UTF-8 encoded text file into an array. At several places in the text file there are blank lines, with no spaces.
In this conditional:
tempstring = [array objectAtIndex:index];
if( [tempstring isEqualToString:@""] == NO ) {
// do something
}
The result is always NO. I NSLog the strings, but I don't see any character in the console on the blank lines. The NSLog also shows the blank lines having the length of 1.
How can I correct this conditional to work?