Advertisement
Guest User

editor

a guest
Aug 20th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. clear()
  2.  
  3. print("Please name your directory")
  4. write("> ")
  5. dir = read()
  6.  
  7. if dir == "OS" then
  8.  print("Sorry you need shell access to edit files in")
  9.  print("this directory.")
  10. else
  11.  if fs.isDir(dir) == true then
  12.   print("Please name your file:")
  13.   write("> ")
  14.   file = read()
  15.  
  16.   shell.run("edit", dir.."/"..file)
  17.  
  18.   print("Now saving "..file.." in folder "..dir)
  19.  else
  20.   print("This is not an existing directory")
  21.  end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement