Java tutorial
//package com.java2s; //License from project: Apache License import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; public class Main { public static void saveBookmark(String extractPath, String md5, ArrayList<String> listBookmark) { try { FileOutputStream fos = new FileOutputStream(extractPath + "/bookmark_" + md5, false); for (String str : listBookmark) { fos.write((str + ";").getBytes()); } fos.close(); } catch (IOException ignored) { } } }