Is it possible to set the byte that a FileOutputStream points to? I have a header in my file in which I leave some empty bytes. Once I write the file I have to go back and overwrite those empty bytes. Is there a way to do this without opening the file twice?
Is it possible to set the byte that a FileOutputStream points to? I have
Share
You can use a java.io.RandomAccessFile for this.