A
Andy Fish
Hi,
I want to rename a file to have a different extension, but I can't find
anything in java.io.File that has any concept of file extension.
I realise this is probably operating system specific if not
application-specific but since the two biggest OSs use file extensions
extensively(!), I was expecting java.io to provide some utility functions to
manipulate them. FWIW I define the file extension as the bit following the
final dot in the file name but I'm happy to accept someone else's
definition.
Andy
I want to rename a file to have a different extension, but I can't find
anything in java.io.File that has any concept of file extension.
I realise this is probably operating system specific if not
application-specific but since the two biggest OSs use file extensions
extensively(!), I was expecting java.io to provide some utility functions to
manipulate them. FWIW I define the file extension as the bit following the
final dot in the file name but I'm happy to accept someone else's
definition.
Andy