Copy the Code Below and Paste it.
Save as "CreateTmp.java" and Compile it.Code:package satheesh; import java.io.*; class CreateTmp { public static void main(String arg[]) { File f1=null; try { f1.createTempFile("Satheesh",".tmp"); } catch (IOException e) { System.out.print("Error:"+e); } } }
Run it.
This Program Create a tmp file in the Temp Directory.
Good Luck.


2Likes
LinkBack URL
About LinkBacks


Reply With Quote
