Java tutorial
//package com.java2s; //License from project: Apache License import java.io.FileOutputStream; import java.io.IOException; public class Main { public static void saveHistory(String extractPath, String md5, int index) { try { FileOutputStream fos = new FileOutputStream(extractPath + "/history_" + md5, false); fos.write(("" + index).getBytes()); fos.close(); } catch (IOException ignored) { } } }