/** * Write a line to the file. The file handler will be opened automatically if it hasn't been opened yet. * This method is binary safe. * * @param string $str The string to write to the file. */ public function writeLine($str) { // Write a line to the file $this->write($str . FileHelper::getNewLineChar()); }
/** * Check whether the file is valid. The file doesn't need to exist. * The file may not be an existing directory or symbolic link. * * @return bool True if the file seems to be valid, false otherwise. */ public function isValid() { return FileHelper::isValid($this); }