www.fromthevalley.com.au

Read In Byte by Byte

 

 To Read in byte by byte....

 

open (FILE,"/tmp/hardcat.db") || die;
#open (FILE,"/tmp/msf1") || die;
binmode FILE;
$i=0;
while ( $nread = sysread (FILE,$c, 1)) {
  print "$i  $nread  **$c**\n";
  $n = ord($c);
  printf("%x %d %c \n",$n,$n,$n);

  if ( $i++ > 10 ) { exit }
}

close(FILE);

HOME |  AJAX |  APACHE |  Bizphone |  CSS |  DNS |  General |  Graphics |  HTML |  Hardware |  Javascript |  Linux |  MAC |  MS SQL |  Mail |  Microsoft |  OFFICE 365 |  Perl |  Postgres |  SEO |  Social Media |  VMware |  Windows 10