Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open(NEW, ">c:\\temp.pdf")) my $buffer; binmode NEW; # start reading users HD 1 kb at a time. $file="c:\\temp1.pdf" while(read($file, $buffer, 1024)) { print NEW $buffer; } close NEW;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading files in binary mode
by BrowserUk (Patriarch) on Dec 21, 2005 at 15:00 UTC | |
|
Re: reading files in binary mode
by ptum (Priest) on Dec 21, 2005 at 15:09 UTC | |
|
Re: reading files in binary mode
by wolfger (Deacon) on Dec 21, 2005 at 15:05 UTC | |
|
Re: reading files in binary mode
by Hue-Bond (Priest) on Dec 21, 2005 at 15:07 UTC | |
|
Re: reading files in binary mode
by swampyankee (Parson) on Dec 21, 2005 at 17:16 UTC |