a simple text file reader example for Mac written in Swift