Swift 3.1 でファイルに文字列を書き出す (MacOS / Xcode 8.3.1)