Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curline = ""
- file1 = fs.open("jobs", "r")
- file2 = fs.open("temp", "w")
- repeat
- curline = file1.readLine()
- if not curline == nill then
- if fs.exists(curline) then
- file2.writeLine(curline)
- end
- end
- until curline == nill
- file1.close()
- file2.close()
- shell.run("delete", "jobs")
- shell.run("copy", "temp", "jobs")
Advertisement
Add Comment
Please, Sign In to add comment