Java, how to override some bytes in a file
<p>I ve created a file using Java.io.File/FileInputStream/FileOutputStream. Now suppose that I want to change the value of some bytes in the file (for instance from the byte 15 to 35) whitout change the size of the file. I ve tried creating a RandomAccessFile object and then use RandomAccessFile.seek to move at the bytes number 15, writing my new bytes and then I ve close the file.. The file has changed its size.. What's wrong with this?</p>
