Monday, 15 March 2010

Write data bytes to a file at an offset in java -


I want to write data to the file at various offset. Example, at position 0, (size / 2) at the same place (size / 4) places, etc. The size shows the file size of the file that is to be made. Is it possible that you can create separate file parts and join it?

Well you can use anywhere in a file to write - reach the right place Use, and start writing.

However, it will not byte place at those places - it will only overwrite them (or eventually add data) if you have the current file length Are finally writing, of course). It is not clear whether you want or not.

No comments:

Post a Comment