Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $i = 1;
    $i++ while -f "file_$i.dat";
    open OUTFILE, "file_$i.dat";
    
  2. or download this
    $i++ while !sysopen( FILE, "file_$i.dat",O_RDWR|O_CREAT|O_EXCL);