source/core/datasystem/file/system/MFile.php
public function writeContent($content, $overwrite = false)
    {

        if ($overwrite) {
            $fh = fopen($this->getPath(), 'w');
        } else {
            $fh = fopen($this->getPath(), 'w+');
        }
        fwrite($fh, $content);
        fclose($fh);
    }
public function writeContent($content, $overwrite = false)
    {

        if ($overwrite) {
            $fh = fopen($this->getPath(), 'w');
        } else {
            $fh = fopen($this->getPath(), 'w+');
        }
        fwrite($fh, $content);
        fclose($fh);
    }
public function writeContent ( $ content , $ overwrite = false ) { if ( $ overwrite ) { $ fh = fopen ( $ this -> getPath ( ) , 'w' ) ; } else { $ fh = fopen ( $ this -> getPath ( ) , 'w+' ) ; } fwrite ( $ fh , $ content ) ; fclose ( $ fh ) ; }
Writes content to harddrive.

@param string $content
@param bool $overwrite
Writes content to harddrive .