Take a look at the arguments for read. It takes a filehandle as the first argument, not a filename. You need to open the input file as well as the output file.
In reply to Re: reading files in binary mode
by BrowserUk
in thread reading files in binary mode
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |