```
class MasterViewController: UITableViewController {

    let firstTable = [String]()
    let secondTable = [String]()

    var path = NSBundle.mainBundle().pathForResource("Chapters", ofType: "txt")
    var data = String(contentsOfFile:path, encoding: NSUTF8StringEncoding, error: nil)
    var content = (data)
    var line: [String] = content.componentsSeparatedByString("\n")

```

**Error:** 

> 
> 'MasterViewController.Type' does not have a member named 'path'
> 
> 
> 

The next Question for @dip >> why does the table print an initial empty string? text is printed in the second cell instead of starting at 0

```
var path: String?
var data: String?
var TableView1 = [String]()

override func viewDidLoad() {
    super.viewDidLoad()

    self.path = NSBundle.mainBundle().pathForResource("textFile", ofType: "txt")
    self.data = String(contentsOfFile:path!, encoding: NSUTF8StringEncoding, error: nil)
    if var content = (data){
        //var line: [String] = content.componentsSeparatedByString("\n")
        var chp: [String] = content.componentsSeparatedByString("#")

        TableView1 += chp
    }...

```