Advertisement
DOGGYWOOF

Untitled

Nov 3rd, 2024 (edited)
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. local file = fs.open("filename.txt", "r")
  2. local content = file and file.readAll()
  3. if file then file.close() end
  4.  
  5. -- Now you can use `content` elsewhere in the code
  6. print(content)
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement