Android File Write writeInstallationFile(File installation)

Here you can find the source of writeInstallationFile(File installation)

Description

write Installation File

License

Open Source License

Declaration

private static void writeInstallationFile(File installation)
            throws IOException 

Method Source Code

//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();
    }
}

Related

  1. writeContatctInfo(String accountId, Vector contactInfo, File contactInfoFile)
  2. writeFile(File file, String data)
  3. writeFile(File file, byte[] data)
  4. writeOneLine(String filename, String value)
  5. stringToFile(String filename, String stringToWrite)