Android File Temp Create createTempFile(File baseDir, String fileName)

Here you can find the source of createTempFile(File baseDir, String fileName)

Description

create Temp File

Declaration

public static java.io.File createTempFile(File baseDir, String fileName) 

Method Source Code

//package com.java2s;
import java.io.File;

public class Main {
    public static java.io.File createTempFile(File baseDir, String fileName) {
        File tempFile = new File(baseDir, fileName);
        tempFile.deleteOnExit();//from ww w  .  j  a  v a 2 s.c  o m
        return tempFile;
    }
}

Related

  1. aTempFile()
  2. createTemp(File file)
  3. createTemp(String path)
  4. createTempFile()
  5. createTempFile(String filePrefix, String fileSuffix)
  6. createTempFile(String pFilename)
  7. getTempFile()
  8. getTempFile(String dir, String fileExt)