in reply to File Copy with Array
Another option to consider is directory permissions. Your use of C:/graphics/$line suggests a win32 machine. I've received this same message during copy when I did not have access permissions on an intermediate directory in the path. Can't say if this is an issue unique to windows directory permissions or a consequence of directory permissions in general. Actually , it has only happened once but I spent three days chasing it down. I guess it stuck with me.
PJ