Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to create temporary file in specified directory

Java: How to create temporary file in specified directory
{filelink=7929}

import java.io.File;
import java.io.IOException;
public class File_TempPath
 {
  public static void main(String[] args) throws IOException
  	 {
    File fichier = null;
    File rep = new File("D:/");
    fichier = File.createTempFile("temp", ".txtTmp", rep);
    // Display the path
    System.out.println(fichier.getCanonicalPath());
  }
}

Users who found this page were searching for:

  • python count occurrences in a string
  • how to add jcmobobox to jtable in java
  • hash check key exists
  • Python Get Working Directory
  • sorting a tuple
  • add second to date java
  • how to flip pixels java vertically
  • java flip verticially

No comments yet.

Leave a Comment