src/Fiedsch/Data/File/Writer.php
public function printLine($line)
    {
        if (!$this->handle) {
            throw new \RuntimeException('can not write to file: invalid file handle');
        }
        fwrite($this->handle, $line . "\n");
        ++$this->lineNumber;
    }
public function printLine($line)
    {
        if (!$this->handle) {
            throw new \RuntimeException('can not write to file: invalid file handle');
        }
        fwrite($this->handle, $line . "\n");
        ++$this->lineNumber;
    }
public function printLine ( $ line ) { if ( ! $ this -> handle ) { throw new \ RuntimeException ( 'can not write to file: invalid file handle' ) ; } fwrite ( $ this -> handle , $ line . "\n" ) ; ++ $ this -> lineNumber ; }
Write to the file.

@param string|null the line to be written to the file or null to write an empty line to the file.
Note that a newline char is automatically appended!
Write to the file .