how to create New file with specified file extension ?
here is the code that can able to create new file in my desired folder. Now what should i do if want to separate the file extension while using createNewFile() method ?
suppose, to create temp file, it has a method to separate the file extension.
File directory = new File("C:/Java/mydir");
File f = new File(directory, "info.txt");
have any method like this for createNewFile() method ??
File file = File .createTempFile( "info", ".txt", new File( "C:\\Java" ) );