private File makeNewRMAFile(File directory,String fileName){
  int count=0;
  while (true) {
    File meganFile=new File(directory,Basic.replaceFileSuffix(Basic.getFileNameWithoutZipOrGZipSuffix(fileName),(count > 0 ? "-" + count : "") + ".rma6"));
    if (!meganFile.exists())     return meganFile;
    count++;
  }
}

private File makeNewRMAFile ( File directory , String fileName ) { int count = 0 ; while ( true ) { File meganFile = new File ( directory , Basic . replaceFileSuffix ( Basic . getFileNameWithoutZipOrGZipSuffix ( fileName ) , ( count > 0 ? "-" + count : "" ) + ".rma6" ) ) ; if ( ! meganFile . exists ( ) ) return meganFile ; count ++ ; } }
make a new megan file name
