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.