My code currently looks like
import UIKit
if let url = URL(string: "https://s3.eu-west-2.amazonaws.com/sliptip/test.rtf") {
do {
let contents = try String(contentsOf: url)
print(contents)
} catch {
// contents could not be loaded
}
} else {
// the URL was bad!
}
and returns a lot of jargon,
\f0\fs24 \cf0 NEW Newcastle 84 }
but all I want is the contents without the characters before and after.
Ideally it should just print
NEW Newcastle 84