Created
October 24, 2019 16:50
-
-
Save simrandotdev/eca3c44fa76650764f6a0bdd7d72f33b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| if let fileURL = Bundle.main.url(forResource: "filename", withExtension: "txt") { | |
| if let fileContents = try? String(contentsOf: fileURL) { | |
| // we loaded the file into a string! | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment