You're looking at (or showing us) the wrong part of the code. Your code as shown does not contain the string Error: cannot read, so the error message is produced elsewhere.
Where exactly are you getting that error message?
Also, what are the filenames that you construct? Do they contain the absolute filenames, without any whitespace?
In reply to Re: can't open file for writing that doesn't exist
by Corion
in thread can't open file for writing that doesn't exist
by navalned
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |