Jump to content




How to edit edit


  • You cannot reply to this topic
2 replies to this topic

#1 minecreatr

  • Members
  • 3 posts

Posted 21 July 2013 - 10: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 :)

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 21 July 2013 - 03: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.

#3 minecreatr

  • Members
  • 3 posts

Posted 22 July 2013 - 10:23 PM

thank you for the help :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users