Help for this page

Select Code to Download


  1. or download this
    open(FILE, '<', '../frame.txt') or die $!;
        while(<FILE>) {
            print $_, "\n";
        }
    close(FILE);
    
  2. or download this
    my $file = '../frame.txt';
    if(-s ($file) >0) {
    ...
    }else{
        print "$file contains no data\n";
    }