tomtrein

Untitled

Oct 16th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. curline = ""
  2.  
  3. file1 = fs.open("jobs", "r")
  4. file2 = fs.open("temp", "w")
  5. repeat
  6. curline = file1.readLine()
  7. if not curline == nill then
  8. if fs.exists(curline) then
  9. file2.writeLine(curline)
  10. end
  11. end
  12. until curline == nill
  13. file1.close()
  14. file2.close()
  15. shell.run("delete", "jobs")
  16. shell.run("copy", "temp", "jobs")
Advertisement
Add Comment
Please, Sign In to add comment