jakeisstoked
Technical User
Hi, I need a file to be written at a specific byte to a specific byte (I can write to a specific byte, that's simple), and I can also read inputstreams from and to a specific byte thanks to the skip() method. Problem is I can't seem find a similar method for outputstreams.
For example, say I have a 10kb file, I need to write to that file starting at byte 1024 and writing over until byte 4096. So I have just modified (not appended to) that file. I realise I can do this by changing what I need and writing the whole file again, however that is isn't what I want.
So is there something like skip() for outputstreams?
Thanks a million
-Jake
For example, say I have a 10kb file, I need to write to that file starting at byte 1024 and writing over until byte 4096. So I have just modified (not appended to) that file. I realise I can do this by changing what I need and writing the whole file again, however that is isn't what I want.
So is there something like skip() for outputstreams?
Thanks a million
-Jake