The code for my program is here:
local newCode = "abc" ---------------------------- local f = fs.open(shell.getRunningProgram(), "r")--Retrieves files code. I used this program to test. local oldFile = f.readAll() f.close() local f = fs.open(shell.getRunningProgram(), "w")--Writes over old code. f.write(newCode) f.close() local f = fs.open(shell.getRunningProgram(), "a")--Adds original code to the newly added code f.write(oldFile) f.close() ----------------------------The name of the program is filejump btw.
Anyways, thanks for reading and hopefully you can help me!
Edited by minecrafter1094, 23 January 2015 - 02:46 AM.