public static void withOpen(String filePath, String mode, EAction1<RandomAccessFile> block) {
		RandomAccessFile recordFile = null;
		try {
			recordFile = new RandomAccessFile(filePath, mode);
			block.call(recordFile);
		}
		catch (Throwable e) { throw new RuntimeException(e); }
		finally {
			try {
				if (recordFile != null)
					recordFile.close();
			} catch (IOException e) { e.printStackTrace(); }
		}
	}