This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.swift | |
// | |
import Foundation | |
/** | |
* ~/Documents(/Users/ユーザ名/Documents)を取得するコードです。 | |
* ここにdata.txtを配置する方法しか読み込む方法が分からなかったので、すいません。。。 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.swift | |
// | |
import Foundation | |
let path = "~/Downloads/data.txt".stringByExpandingTildeInPath | |
if let data = String( | |
contentsOfFile: path, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"*": | |
nuclide: | |
installRecommendedPackages: true | |
"nuclide-arcanist": {} | |
"nuclide-buck": | |
compileErrorDiagnostics: false | |
suggestTaskRunner: false | |
"nuclide-buck-files": {} | |
"nuclide-clang": | |
enableDefaultFlags: false |