View Single Post
Old 07-31-2003, 05:27 PM  
m4tt
So Fucking Banned
 
Join Date: May 2003
Location: San Diaygo, CA
Posts: 384
come on people... basic stuff

PHP Code:
<?php

    $output 
= array();
    
$handle = @fopen("text.txt""r");
    
        while(!
feof($handle))    {
            
$buffer = @fgets($handle4096);
            
$buffer trim($buffer);
            
            if (
strlen($bufferhahahaha 7)    {
                
$output[] = $buffer;
            }
        }
        
    @
fclose($handle);
    
    
$new_handle = @fopen("output.txt""a")or die("Could not create new file.");
    
        for (
$i 0$i count($output); $i++)    {
            @
fwrite($new_handle$output[$i] . "\n");
        }
    
    @
fclose($new_handle);
?>
m4tt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote