Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local file = fs.open("filename.txt", "r")
- local content = file and file.readAll()
- if file then file.close() end
- -- Now you can use `content` elsewhere in the code
- print(content)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement