I am trying to read a binary file with the following code:

$filename = "binary_file.rpy";
open(FILE, $filename)         or die "can't open $filename: $!";

binmode(FILE);               
binmode(STDOUT);            

while (read(FILE, $buff, 8 * 2**10)) {
    print STDOUT $buff;
}

I get *some* readable output, but there are still many characters that
appear as gibberish. Are there any other techniques I can use to make
the output more readable?

Thanks much,

--Paul

Reply via email to