Java Temp File Create getTempFile()

Here you can find the source of getTempFile()

Description

get Temp File

License

Apache License

Declaration

public static File getTempFile() throws IOException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.File;
import java.io.IOException;

public class Main {
    public static File getTempFile() throws IOException {
        return File.createTempFile("temp", Long.toString(System.nanoTime()));
    }/*from  w ww  . j a v a2s .  c  om*/
}

Related

  1. createTempFile(@Nonnull String prefix, @Nonnull String suffix, @Nullable File parentDir)
  2. createTempFile(final String file, final String ext)
  3. createTempFile(String oriFileName)
  4. getTempFile()
  5. getTempFile(File file)
  6. getTempFile(File parent, String fileName)
  7. getTempFile(final File stackFile)
  8. getTempFile(final String directory, final String suffix, boolean autodelete)