classes/phing/system/util/Properties.php
public function load(PhingFile $file)
    {
        if ($file->canRead()) {
            $this->parse($file);

            $this->file = $file;
        } else {
            throw new IOException("Can not read file " . $file->getPath());
        }
    }
public function load(PhingFile $file)
    {
        if ($file->canRead()) {
            $this->parse($file);

            $this->file = $file;
        } else {
            throw new IOException("Can not read file " . $file->getPath());
        }
    }
public function load ( PhingFile $ file ) { if ( $ file -> canRead ( ) ) { $ this -> parse ( $ file ) ; $ this -> file = $ file ; } else { throw new IOException ( "Can not read file " . $ file -> getPath ( ) ) ; } }
Load properties from a file.

@param  PhingFile $file
@return void
@throws IOException - if unable to read file.
Load properties from a file .