Skip to content

Missing append to file  #54

@ivanmtw

Description

@ivanmtw

Trying write content to existing file, flags 'a' and 'w' so similar, and any write clear previously saved data:

$file = $filesystem->file($tsv_filename);
$file->open('ca')->then(function (React\Stream\WritableStreamInterface $stream) use ($tsv_data) {
$stream->write(implode("\t", $tsv_data) . "\n");
$stream->end();
echo "Data was written\n";
});

Apologize no file append functionality in reactphp/filesystem, please add it, thx.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions