Margresse404

fileTest

Jun 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. print("Specify the file name")
  2. fileName = read()
  3. local h = fs.open("disk/"..fileName, fs.exists("disk/"..fileName) and "a" or "w")
  4. h.close()
Advertisement
Add Comment
Please, Sign In to add comment