Tao Te Ka-Ching ― Ok, the storyline: A web site creates a temporary file to work with, then is supposed to delete it, because maybe space is low on the drive or whatever. There are times where the file will still be locked from our work when we try to delete it. Perhaps we did something like:File.WriteAllBytes("newFile", File.ReadAllBytes("oldFile"));And it hasn’t released the lock on “oldFile” when we get to the next statement. Oh man, that’s a problem. A[...]
What would you say?
Be the first to comment on this blog post! Sign in or Create an account.