This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
minecreatr's profile picture

How to edit edit

Started by minecreatr, 21 July 2013 - 09:56 AM
minecreatr #1
Posted 21 July 2013 - 11:56 AM
Hello, I am trying to make a program that will edit the edit program by doing:
fs.delete("rom/programs/edit")
fs.copy("disk/newedit", "rom/programs/edit")

whenever I try to run it it says Access Denied
Is there a way to give the program access?
Thank you for reading my post :)/>
Lyqyd #2
Posted 21 July 2013 - 04:16 PM
Split into new topic.

Nope, ROM is Read-Only Memory. It cannot be written to from inside computercraft. Try creating your file at /edit instead of /rom/programs/edit. Any time you type edit <filename>, you'll use your replacement, but the actual edit program will be available at /rom/programs/edit, of course.
minecreatr #3
Posted 22 July 2013 - 11:23 PM
thank you for the help :)/>