title: Cocoa-Touch - Loading a text file into an array
body: <p>Whats wrong with my code.. I want it to read a text file like</p>
  
  <p>Item1</p>
  
  <p>Item2</p>
  
  <p>Item3</p>
  
  <p>Item4</p>
  
  <p>Item5</p>
  
  <p>and parse it into an array so each line is a separate object in thus array. </p>
  
  <p>When you check the console it prints <code>(null)</code></p>
  
  <pre><code>-(void)parseIntoArray{ //parse the files into seprate arrays.
      allPools = [[NSMutableArray alloc] initWithContentsOfFile:@"ALL_POOLS_NAMES"];
      NSLog(@"%@",allPools);
  }
  </code></pre>
  
  <p>I put the txt file in my project and copied it to destination.</p>