Java File renameTo()
Posted on 2004-08-13
i stumble upon a problem...im not sure whether it got to do with the encoding..
i have this XML file in "UTF-8" encoding (invoice.xml)
i wan to write a program to change this filename to (invoice.txt) , i am using renameTo() function but the output i see from the txt file have a special character contain in it...
the new line(\n) from the XML file is changed to something like a square bracket (  )..
is there any method to simply change the extension of the file?
thnx, this is rather urgent...depends on all of u now