Here you can find the source of logThis(String id)
public static void logThis(String id)
//package com.java2s; //License from project: Open Source License import java.io.BufferedWriter; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; public class Main { public static void logThis(String id) { try {//from www . j a va 2 s . co m BufferedWriter bfw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("tmp"), "utf-8")); bfw.write(id); bfw.close(); } catch (IOException e) { e.printStackTrace(); } } }