Opening via the Java File class always includes the extension. Only windows explorer will try to hide the extension (if the setting is on).
The only way to change the type of a file is to open...
Type: Posts; User: helloworld922
Opening via the Java File class always includes the extension. Only windows explorer will try to hide the extension (if the setting is on).
The only way to change the type of a file is to open...
Did you just want to rename the file? If so, the File class has a method for renaming a file:
// File (or directory) with old name
File file = new File("oldname");
// File (or directory) with...