Help for this page

Select Code to Download


  1. or download this
    
    my $file_cont; # define a variable for keeping of file content
    ...
    binmode INPUT; # If your file is binare
    read INPUT, $file_cont, -s $fname;
    close INPUT or die "Can't close file $fname: $!";
    
  2. or download this
           read FILEHANDLE,SCALAR,LENGTH,OFFSET
    or
           read FILEHANDLE,SCALAR,LENGTH