title: Using Text from a Text File in a UITableView using Swift
body: <p>What I am working on is a UITableView in Swift. I am aiming at using it as a source of navigation.
  I figured out how to display text from a text file on my UITableView (see code below) But What i am finding hard to get my head around is Printing each string(Line) in a separate TableCell?</p>
  
  <pre><code>var FirstTableArray = [String]()
  var SecondTableArray = [SecondTable]()
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      if let path = NSBundle.mainBundle().pathForResource("Chapters", ofType: "txt"){
          var data = String(contentsOfFile:path, encoding: NSUTF8StringEncoding, error: nil)
          if let content = (data){
              let myStrings = content.componentsSeparatedByCharactersInSet(NSCharacterSet.newlineCharacterSet())
              FirstTableArray = myStrings[1,2,3]
          }
      }
  </code></pre>
  
  <p><code>FirstTableArray = myString[1,2,3] &lt;--</code> error. I'm trying to display the text in the TableView separately. atm the code prints the whole text in one whole cell. </p>