Hello Everyone, I haven't been able to figure our why my .txt file shows up fine on my simulators but not my iphone.
I found info about .png's doing the same thing but because of a compiling issue.
My build throws no errors and the section headers and correct cell quantities appear but no text.
This is the code I am using to extract the array of data from the .txt files.
So is there a better way of extracting the data from a .txt file into an array? Or is there a compiling issue like the .png? Or am I a dummy and I should know this isn't the correct way of creating an array from a .txt file?
NSString *delimiter = @"\n";
/*
Pull contents of text file, convert to string format, separate by newline, finish by giving new local array a pointer
*/
//COWEL DOOR CHECK
NSData *cowelDoorCheckTF = [NSData dataWithContentsOfFile:@"/Users/Makey/Dropbox/iPreFlight/iPreFlight R22/Text Data Files/PreFlight/CowelDoorCheck.txt"];
NSString *cowelDoorCheckString = [[NSString alloc]initWithBytes:[cowelDoorCheckTF bytes] length:[cowelDoorCheckTF length] encoding:NSUTF8StringEncoding];
NSArray *cowelDoorCheck = [cowelDoorCheckString componentsSeparatedByString:delimiter];