Вам необходимо присвоить string
вашей data
метке.Просто как:
data.text = readString // If you need to print 'readString'
data.text = readStringProject // If you need to print 'readStringProject'
var readString = ""
do {
readString = try String(contentsOfFile: fileURL)
data.text = readString
} catch let error as NSError {
print("failed to read file")
print(error)
}