I have to read a bin file in perl/tk. I have been able to read and open the file, but the read in file only has every other line from the original file. I am using following to open the file.
my @contents;
open(FILE,"example_data4.bin") or die"cant open file: $!";
@contents = <FILE>;
$txt->insert('end',@contents);
But this program only reads 1,3,5,7..... lines from the original file.
Can anyone help.
Thanks