title: Renaming a RandomAccessFile
body: <p>i have a RAF called data.bin and a temporary RAF called temp.bin. </p>
  
  <pre><code>        data = new RandomAccessFile("data.bin","rws");
          temp = new RandomAccessFile("temp.bin","rws");
  </code></pre>
  
  <p>the temp file is basically the data.bin file but i alter the information in it. so once im done altering the temp file how do i change the name of temp.bin to data.bin and delete the old data.bin?</p>
  
  <p>ive seen some things about renaming Files with .renameTo() and stuff but that does apply to a RandomAccessFile. and i couldnt find any method like that for RAFs</p>