Think/Storage/Driver/File.php
public static function append($filename, $content)
    {
        if (is_file($filename)) {
            $content = static::read($filename).$content;
        }

        return static::put($filename, $content);
    }
public static function append($filename, $content)
    {
        if (is_file($filename)) {
            $content = static::read($filename).$content;
        }

        return static::put($filename, $content);
    }
文件追加写入


@param string $filename 文件名
@param string $content 追加的文件内容

@return bool