Hello,
I'm trying to do something that seems impossible from API features. I have a file that contains a set of block. At one point, I am prompted to delete a block of the file, ie my file to the end must be there before, and what there after. Having traveled a good part of the API for I / O, the only way I found it to truncate my file at the beginning of the block and then rewrite everything that was after, which potentially represents a chunk. transferTo () and Transfer from () to FileChannel air to say that optimizes a little depending on the behavior of the OS that the latter changes its indexing of pages instead of copying bit by bit. So here's my question- simple way to turn a piece of a specific file without having to have a stream opened on the end and rewrite everything in the end just to concatenate? A function that adds a piece to another discard all that is in the middle after all?
Bookmarks