View Single Post
Old 05-03-2009, 09:26 PM  
ProG
Confirmed User
 
Join Date: Apr 2009
Posts: 1,319
PHP Code:
<?php
if ( ( $file file"file.txt" ) ) !== false )
{
    foreach( 
$file as $line )
    {
        
$words explode" "trim$line ) );
        foreach( 
$words as $word )
        {
            if ( 
strlen$word ) > )
            {
                echo 
$word "\n";
            }
        }
    }
}
?>
ProG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote