Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear()
- print("Please name your directory")
- write("> ")
- dir = read()
- if dir == "OS" then
- print("Sorry you need shell access to edit files in")
- print("this directory.")
- else
- if fs.isDir(dir) == true then
- print("Please name your file:")
- write("> ")
- file = read()
- shell.run("edit", dir.."/"..file)
- print("Now saving "..file.." in folder "..dir)
- else
- print("This is not an existing directory")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement