Removing part of a file in node.js

Viewed 603

Currently, I'm looking at trying to remove part of what is basically a proprietary archive format; in order to support the ability to remove a file, I'm trying to figure out how to remove a segment of the file (given an offset and a length). I see there's plenty of append logic when it comes to the fs module of node, but nothing that seems to "splice" parts of a file.

Is this going to be even possible? Will I have to resort to the less preferred option of writing to an entirely new file instead?

1 Answers
Related