Skip to content

Overwrite option preserves file past new length #11

@juliand665

Description

@juliand665

I ran into this problem today because I start with the previous day's input in my template and simply overwrite it when the new day comes out, and day 4's input is much longer than day 5's. It turns out that the overwrite option simply writes the new bytes over the existing ones, without clearing any existing extra bytes. So overwriting a 1000-byte input file with a 500-byte input results in the 500 new bytes of input, followed by bytes 501-1000 of the previous contents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions