FileOutputStream fos = null;
try {
String userPath = System.getProperty("user.dir") + System.getProperty("file.separator");
File logFile = new File(userPath + "snippet.log");
fos = new FileOutputStream(logFile,true);
fos.write((value+"\n").getBytes());
fos.close();
} catch(Exception e) {
//Do nothing
}