protected function Read($file)
    {
        # Open File
        $fh = fopen($file, 'r');
        $fileSize = filesize($file);
        
        if(!empty($fileSize)) {
            # Read Data
            $data = fread($fh, $fileSize);
            
            # Fix Data Stream to be the exact same format as PHP's strings
            $data = str_replace(array("\r\n", "\r", "\n"), "\n", $data);
        } else {
            $data = '';
        }
        
        # Close File
        fclose($fh);
        
        # Return Data
        return $data;
    }
protected function Read($file)
    {
        # Open File
        $fh = fopen($file, 'r');
        $fileSize = filesize($file);
        
        if(!empty($fileSize)) {
            # Read Data
            $data = fread($fh, $fileSize);
            
            # Fix Data Stream to be the exact same format as PHP's strings
            $data = str_replace(array("\r\n", "\r", "\n"), "\n", $data);
        } else {
            $data = '';
        }
        
        # Close File
        fclose($fh);
        
        # Return Data
        return $data;
    }
protected function Read ( $ file ) { # Open File $ fh = fopen ( $ file , 'r' ) ; $ fileSize = filesize ( $ file ) ; if ( ! empty ( $ fileSize ) ) { # Read Data $ data = fread ( $ fh , $ fileSize ) ; # Fix Data Stream to be the exact same format as PHP's strings $ data = str_replace ( array ( "\r\n" , "\r" , "\n" ) , "\n" , $ data ) ; } else { $ data = '' ; } # Close File fclose ( $ fh ) ; # Return Data return $ data ; }
Read Method, Read file and returns it's contents
@return string $data returned data
Read Method Read file and returns it s contents