Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if let url = testURL {
- do {
- let contents = try String(contentsOf: url)
- print(contents)
- } catch {
- // contents could not be loaded
- }
- } else {
- // the URL was bad!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement