http://qs321.pair.com?node_id=1161720


in reply to Re: The process cannot access the file because it is being used by another process?
in thread The process cannot access the file because it is being used by another process?[Problem disappeared!]

Have you really not tried putting those first 13 lines into a separate file, ...

Of course, that exactly what I did. I posted the error because I've never encountered it before and wondered if anyone knew what caused it.

As for the why. Why do you ever put DATA in a script? Same reasons apply.

For the specifics of this occasion. I'd just copied the data out of another much bigger file with mixed content -- rather than write what would be a moderately complex parser -- to see what if any sense I could make of it. It was sat in the paste buffer when I opened a new file in my editor to write my scratch script and thought, why bother with a separate file...

Then the error occurred and the rest you see here.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^2: The process cannot access the file because it is being used by another process?