develooper Front page | perl.perl6.users | Postings from February 2019

Start reading at a specific index?

Thread Next
From:
ToddAndMargo via perl6-users
Date:
February 2, 2019 09:08
Subject:
Start reading at a specific index?
Message ID:
d60535cb-dba7-1489-4b87-53305996474b@zoho.com
Hi All,

Is there a way to modify this to start reading at
a specific index?  And include how many bytes (3000000)
to read as well?

      my $FileHandle     = open( $FileName, :bin, :ro );
      my Buf $BinaryFile = $FileHandle.read( 3000000 );

Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About