Guest User

test_bloke

a guest
Apr 3rd, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. myDocument = {"yolo"} --text to write to file
  2. myFile = fs.open("myFile.txt", "w")
  3. myFile.writeLine(myDocument[1])
  4. myFile.close()
  5.  
  6. myFile, myDocument = fs.open("myFile.txt", "r") {}
  7. table.insert(myDocument)
  8. myFile.close()
  9. print(myDocument[1])
Advertisement
Add Comment
Please, Sign In to add comment