hmortensen 13 Light Poster

Hi,

I'm waiting for a file, and then trying to delete it.
This is what I have.

repeat
  file, msg = io.open("Done.txt", "r")
until file
file:close()

os.remove("Done.txt")

dbg=io.open("DEBUG.txt", "a+")
dbg:write(file .. "|" .. msg);
dbg:write("\n")
dbg:close()

It does wait for the file to be created (so I know it's there), but crashes when it reaches os.remove?

Any ideas, anyone?

- hmortensen