Help for this page

Select Code to Download


  1. or download this
    my $filename = "text.txt";
    binmode($filename);
    
  2. or download this
    while (<$filename>) {
           print;
    }
    
  3. or download this
    while ($bytesread=read($filename,$buffer,1024)) {
           print OUTFILE $buffer;
           print "the thing is open";
    }