begae60 has asked for the wisdom of the Perl Monks concerning the following question:
But, after a couple of characters, the perl script stops to read in and exit! I took a look with a hex-editor, but I saw nothing like a EOF character... I upload the .bin file here: http://begae.baghack.ch/file.bin, in fact you wanna take a look at it.open FILE, "file.bin" or die; binmode(FILE); while ($ch = getc(FILE)){ $temp = ord($ch); print "$temp\n"; } close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to read in a .bin file.
by Tanktalus (Canon) on Aug 06, 2006 at 13:53 UTC | |
|
Re: Unable to read in a .bin file.
by davido (Cardinal) on Aug 06, 2006 at 15:23 UTC | |
|
Re: Unable to read in a .bin file.
by jwkrahn (Abbot) on Aug 06, 2006 at 16:32 UTC |