Java tutorial
//package com.java2s; import java.io.FileOutputStream; public class Main { private static void writeLog(String file) throws Exception { FileOutputStream in = new FileOutputStream("/usr/local/software/importlog.txt", true); in.write((file + "\n").getBytes()); } }