You can use java.io.RandomAccessFile or if the file is short it may be easier to rename the existing file, create a new file with the old filename and then write the data to append followed by the...