Here you can find the source of writeInstallationFile(File installation)
private static void writeInstallationFile(File installation) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.UUID; public class Main { private static void writeInstallationFile(File installation) throws IOException { FileOutputStream out = new FileOutputStream(installation); String id = UUID.randomUUID().toString(); out.write(id.getBytes());/*w w w . j a v a2 s . co m*/ out.close(); } }