SyntaxFix
Write A Post
Hire A Developer
Questions
This is a one line, copy-pasteable solution that also closes the file object:
_ = open('data.txt', 'r'); data = _.read(); _.close()